Enumerable type object
PHP contains no enum-type class internally, so to mirror the convenience such a class offers, we created the Xyster_Enum. Enum classes are used to represent set types of things, for instance, if we created a class to represent different operating systems, it might provide enum methods like this:
Located in /Enum.php (line 42)
Class | Description |
---|---|
Xyster_Data_Aggregate | Aggregate function enumerated type |
Xyster_Data_Operator_Expression | Enumerated type of Expression operators |
Xyster_Db_DataType | SQL Data type enumerated type |
Xyster_Db_ReferentialAction | SQL referential action enumerated type |
Returns the corresponding enum object based on name
Returns the corresponding enum object based on value
Gets an array of the name and value pairs available from an enum
The associative array contains the enum values as keys and the enum constant names as values. For example, the Colors enum might return:
Factories and returns a singleton enum
Creates a new enum derived class
Gets the string name of this enum type
Gets the value of this enum type
Cannot be cloned
Gets details of the object
Documentation generated on Mon, 19 May 2008 17:07:07 -0400 by phpDocumentor 1.4.2