PHP Class Prado\TEnumerable
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.
显示文件
Open project: pradosoft/prado
Public Methods
Method Details
__construct()
public method