src/models/Lookup.php
public static function item($property, $code, $byId = false)
	{
		$property_id = self::getPropertyId($property, $byId);
		if(!isset(self::$_items[$property_id]))
			self::loadItems($property_id);
		return isset(self::$_items[$property_id][$code]) ? self::$_items[$property_id][$code] : false;
	}
public static function item($property, $code, $byId = false)
	{
		$property_id = self::getPropertyId($property, $byId);
		if(!isset(self::$_items[$property_id]))
			self::loadItems($property_id);
		return isset(self::$_items[$property_id][$code]) ? self::$_items[$property_id][$code] : false;
	}
public static function item ( $ property , $ code , $ byId = false ) { $ property_id = self :: getPropertyId ( $ property , $ byId ) ; if ( ! isset ( self :: $ _items [ $ property_id ] ) ) self :: loadItems ( $ property_id ) ; return isset ( self :: $ _items [ $ property_id ] [ $ code ] ) ? self :: $ _items [ $ property_id ] [ $ code ] : false ; }
Returns the item name for the specified property and code.
@param string | integer property name or ID
@param integer the item code (corresponding to the 'code' column value)
@param boolean slug or integer ID
@return string the item name for the specified the code. False is returned if the item type or code does not exist.
Returns the item name for the specified property and code .