demos/blog/protected/models/Lookup.php
public static function item($type,$code)
	{
		if(!isset(self::$_items[$type]))
			self::loadItems($type);
		return isset(self::$_items[$type][$code]) ? self::$_items[$type][$code] : false;
	}
public static function item($type,$code)
	{
		if(!isset(self::$_items[$type]))
			self::loadItems($type);
		return isset(self::$_items[$type][$code]) ? self::$_items[$type][$code] : false;
	}
public static function item ( $ type , $ code ) { if ( ! isset ( self :: $ _items [ $ type ] ) ) self :: loadItems ( $ type ) ; return isset ( self :: $ _items [ $ type ] [ $ code ] ) ? self :: $ _items [ $ type ] [ $ code ] : false ; }
Returns the item name for the specified type and code.
@param string the item type (e.g. 'PostStatus').
@param integer the item code (corresponding to the 'code' column value)
@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 type and code .