Advertisement
Guest User

Untitled

a guest
Jun 26th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1.        class IV_Doctrine_Base {
  2.     /**
  3.      * Role Definition
  4.      */
  5.     const ROLE_UNKNOWN          = 0;
  6.     const ROLE_INMEMORIAM       = 100;
  7.     const ROLE_SUSPENDED        = 200;
  8.     const ROLE_INACTIVE         = 300;
  9.     const ROLE_ACTIVE           = 400;
  10.     const ROLE_SUPERVISOR       = 500;
  11.     const ROLE_ADMINISTRATOR    = 600;
  12.  
  13.     /**
  14.      * @var Doctrine\ORM\EntityManager
  15.      */
  16.     protected static $instance;
  17.  
  18.     public static function getRoles()
  19.     {
  20.         return array(
  21.             'role_unknown' => self::ROLE_UNKNOWN,
  22.             'role_inmemoriam' => self::ROLE_INMEMORIAM,
  23.             'role_suspended' => self::ROLE_SUSPENDED,
  24.             'role_inactive' => self::ROLE_INACTIVE,
  25.             'role_active' => self::ROLE_ACTIVE,
  26.             'role_supervisor' => self::ROLE_SUPERVISOR,
  27.             'role_administrator' => self::ROLE_ADMINISTRATOR,
  28.         );
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement