system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.cubrid system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.gii system.i18n system.i18n.gettext system.logging system.test system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.form system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers zii.behaviors zii.widgets zii.widgets.grid zii.widgets.jui

CEnumerable

system.base
继承 class CEnumerable
可用自 1.0
源码 framework/base/CComponent.php
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.