Public Member Functions | |
__construct ($id) | |
getId () | |
parent's getId() is too complex in our case | |
getObjectList () | |
toString () | |
getNameList () | |
setId ($id) | |
| |
__sleep () | |
prevent's serialization of names' array | |
__wakeup () | |
serialize () | |
unserialize ($serialized) | |
Static Public Member Functions | |
static | getList (Enumeration $enum) |
static | getAnyId () |
must return any existent ID 1 should be ok for most enumerations | |
Protected Attributes | |
$names = array(/* override me */) |
Definition at line 21 of file Enumeration.class.php.
Enumeration::__construct | ( | $ | id | ) | [final] |
Definition at line 25 of file Enumeration.class.php.
References IdentifiableObject::$id, and setId().
Enumeration::__sleep | ( | ) |
Enumeration::__wakeup | ( | ) |
Definition at line 37 of file Enumeration.class.php.
References setId().
Enumeration::serialize | ( | ) |
Definition at line 42 of file Enumeration.class.php.
Enumeration::unserialize | ( | $ | serialized | ) |
Definition at line 47 of file Enumeration.class.php.
References setId().
static Enumeration::getList | ( | Enumeration $ | enum | ) | [static] |
Definition at line 53 of file Enumeration.class.php.
References getObjectList().
static Enumeration::getAnyId | ( | ) | [static] |
must return any existent ID 1 should be ok for most enumerations
Reimplemented in PostgresError, DataType, ImageType, HttpStatus, MetaClassType, and MetaRelation.
Definition at line 62 of file Enumeration.class.php.
Enumeration::getId | ( | ) |
parent's getId() is too complex in our case
Reimplemented from IdentifiableObject.
Definition at line 68 of file Enumeration.class.php.
Referenced by LightMetaProperty::setFetchStrategy().
Enumeration::getObjectList | ( | ) |
Definition at line 73 of file Enumeration.class.php.
References IdentifiableObject::$id, $names, and getNameList().
Referenced by getList().
Enumeration::toString | ( | ) |
Reimplemented from NamedObject.
Reimplemented in HttpStatus.
Definition at line 84 of file Enumeration.class.php.
Enumeration::getNameList | ( | ) |
Enumeration::setId | ( | $ | id | ) |
Reimplemented from IdentifiableObject.
Reimplemented in LogLevel.
Definition at line 97 of file Enumeration.class.php.
References IdentifiableObject::$id, $names, and getNameList().
Referenced by __construct(), __wakeup(), and unserialize().
Enumeration::$names = array(/* override me */) [protected] |
Reimplemented in PostgresError, AccessMode, IsolationLevel, DataType, DatePart, ForeignChangeAction, ImageType, RequestType, FetchStrategy, FeedItemContentType, HttpMethod, HttpStatus, MailEncoding, LogLevel, MetaClassType, and MetaRelation.
Definition at line 23 of file Enumeration.class.php.
Referenced by getObjectList(), and setId().