.

DAOSystemUsers Class Reference
[Usermanagement]

A fake user class to use as system user. More...

Inheritance diagram for DAOSystemUsers:
DAOUsers DataObjectTimestampedCached IStatusHolder ISelfDescribing DataObjectCached ITimeStamped DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Member Functions

  __construct ()
  get_role_names ()
  Returns array of role names.
  get_status ()
  Returns status.
  is_active ()
  Returns true, if status is active.
  is_deleted ()
  Returns true, if status is deleted.
  is_disabled ()
  Returns true, if status is disabled.
  is_unconfirmed ()
  Returns true, if status is unconfirmed.

Detailed Description

A fake user class to use as system user.

There is no SYSTEM role in DB, since SYSTEM is not a real user. Therefore this class is used

Author:
Gerd Riesselmann

Definition at line 11 of file systemusers.model.php.


Constructor & Destructor Documentation

DAOSystemUsers::__construct (  ) 

Reimplemented from DataObjectBase.

Definition at line 12 of file systemusers.model.php.

00012                                       {
00013                 parent::__construct();
00014                 $this->email = Config::get_value(Config::MAIL_ADMIN);
00015         }

Member Function Documentation

DAOSystemUsers::get_role_names (  ) 

Returns array of role names.

Returns:
array

Reimplemented from DAOUsers.

Definition at line 72 of file systemusers.model.php.

00072                                          {
00073                 return array(USER_ROLE_SYSTEM => USER_ROLE_SYSTEM);             
00074         }
DAOSystemUsers::get_status (  ) 

Returns status.

Returns:
string

Reimplemented from DAOUsers.

Definition at line 22 of file systemusers.model.php.

00022                                      {
00023                 return Users::STATUS_ACTIVE;
00024         }
DAOSystemUsers::is_active (  ) 

Returns true, if status is active.

Returns:
bool

Reimplemented from DAOUsers.

Definition at line 31 of file systemusers.model.php.

00031                                     {
00032                 return true;
00033         }
DAOSystemUsers::is_deleted (  ) 

Returns true, if status is deleted.

Returns:
bool

Reimplemented from DAOUsers.

Definition at line 49 of file systemusers.model.php.

00049                                      {
00050                 return false;
00051         }
DAOSystemUsers::is_disabled (  ) 

Returns true, if status is disabled.

Returns:
bool

Reimplemented from DAOUsers.

Definition at line 58 of file systemusers.model.php.

00058                                       {
00059                 return false;
00060         }
DAOSystemUsers::is_unconfirmed (  ) 

Returns true, if status is unconfirmed.

Returns:
bool

Reimplemented from DAOUsers.

Definition at line 40 of file systemusers.model.php.

00040                                          {
00041                 return false;
00042         }

The documentation for this class was generated from the following file: