Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IV_Doctrine_Base {
- /**
- * Role Definition
- */
- const ROLE_UNKNOWN = 0;
- const ROLE_INMEMORIAM = 100;
- const ROLE_SUSPENDED = 200;
- const ROLE_INACTIVE = 300;
- const ROLE_ACTIVE = 400;
- const ROLE_SUPERVISOR = 500;
- const ROLE_ADMINISTRATOR = 600;
- /**
- * @var Doctrine\ORM\EntityManager
- */
- protected static $instance;
- public static function getRoles()
- {
- return array(
- 'role_unknown' => self::ROLE_UNKNOWN,
- 'role_inmemoriam' => self::ROLE_INMEMORIAM,
- 'role_suspended' => self::ROLE_SUSPENDED,
- 'role_inactive' => self::ROLE_INACTIVE,
- 'role_active' => self::ROLE_ACTIVE,
- 'role_supervisor' => self::ROLE_SUPERVISOR,
- 'role_administrator' => self::ROLE_ADMINISTRATOR,
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement