Enumeration Class Reference
[Widely used base classes and interfacesClasses implemented in PHP's extension.]

Parent of all enumeration classes. More...

Inheritance diagram for Enumeration:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($id)
 getId ()
 parent's getId() is too complex in our case
 getObjectList ()
 toString ()
 getNameList ()
 setId ($id)
 
Returns:
Enumeration

 __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 */)


Detailed Description

Parent of all enumeration classes.

See also:
AccessMode for example

Definition at line 21 of file Enumeration.class.php.


Constructor & Destructor Documentation

Enumeration::__construct ( id  )  [final]

Definition at line 25 of file Enumeration.class.php.

References IdentifiableObject::$id, and setId().

Here is the call graph for this function:


Member Function Documentation

Enumeration::__sleep (  ) 

prevent's serialization of names' array

Definition at line 32 of file Enumeration.class.php.

Enumeration::__wakeup (  ) 

Definition at line 37 of file Enumeration.class.php.

References setId().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static Enumeration::getList ( Enumeration enum  )  [static]

Definition at line 53 of file Enumeration.class.php.

References getObjectList().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Enumeration::toString (  ) 

Reimplemented from NamedObject.

Reimplemented in HttpStatus.

Definition at line 84 of file Enumeration.class.php.

Enumeration::getNameList (  ) 

Definition at line 89 of file Enumeration.class.php.

Referenced by getObjectList(), and setId().

Enumeration::setId ( id  ) 

Returns:
Enumeration

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().

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:21 2007 for onPHP by  doxygen 1.5.4