Class \Prado\TEnumerable
TEnumerable class.
TEnumerable is the base class for all enumerable types. To define an enumerable type, extend TEnumberable and define string constants. Each constant represents an enumerable value. The constant name must be the same as the constant value. For example,
class TTextAlign extends \Prado\TEnumerable
{
const Left='Left';
const Right='Right';
}
Then, one can use the enumerable values such as TTextAlign::Left and TTextAlign::Right.
Class hierarchy
- \Prado\TEnumerable implements Iterator
Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|