public function automaticItemType($data)
	{
		if (isset($data['item_type']))
		{
			$data['item_type'] = strtolower(preg_replace("/[^a-zA-Z0-9\-]/", '', trim($data['item_type'])));
		}

		return $data['item_type'];
	}
public function automaticItemType($data)
	{
		if (isset($data['item_type']))
		{
			$data['item_type'] = strtolower(preg_replace("/[^a-zA-Z0-9\-]/", '', trim($data['item_type'])));
		}

		return $data['item_type'];
	}
public function automaticItemType ( $ data ) { if ( isset ( $ data [ 'item_type' ] ) ) { $ data [ 'item_type' ] = strtolower ( preg_replace ( "/[^a-zA-Z0-9\-]/" , '' , trim ( $ data [ 'item_type' ] ) ) ) ; } return $ data [ 'item_type' ] ; }
Generates automatic item type value

@param   array   $data  the data being saved
@return  string
Generates automatic item type value