Class CEnumerable
CEnumerable is the base class for all enumerable types.
To define an enumerable type, extend CEnumberable and define string constants. Each constant represents an enumerable value. The constant name must be the same as the constant value. For example,
class TextAlign extends CEnumerable { const Left='Left'; const Right='Right'; }
Then, one can use the enumerable values such as TextAlign::Left and TextAlign::Right.
Package: system\base
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/base/CComponent.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/base/CComponent.php