public static function acl()
 {
     if (self::$_acl === NULL) {
         self::loadCore('auth/DooAcl');
         self::$_acl = new DooAcl();
     }
     return self::$_acl;
 }
示例#2
0
 /**
  * @param string $class the class to use for ACL. Can be DooAcl or DooRbAcl
  * @return DooAcl|DooRbAcl the application ACL singleton, auto create if the singleton has not been created yet.
  */
 public static function acl($class = 'DooAcl')
 {
     if (self::$_acl === NULL) {
         self::loadCore('auth/' . $class);
         self::$_acl = new $class();
     }
     return self::$_acl;
 }