Ejemplo n.º 1
0
 function __construct($module_dir)
 {
     if (is_null($module_dir)) {
         throw new Exception("Module dir cannot be null.");
     }
     $this->module_dir = $module_dir;
     parent::__construct();
 }
Ejemplo n.º 2
0
 function __construct($role_id, $locale_code = "en-us", $config = null, $restricted = null)
 {
     $this->locale_code = $locale_code;
     $this->role_id = $role_id;
     if (is_array($this->role_id)) {
         $all_roles = $this->role_id;
     } else {
         $all_roles = array($this->role_id);
     }
     $roles_table = new Roles();
     foreach ($all_roles as $role) {
         $all_roles = array_merge($all_roles, $roles_table->getAllAncestors($role));
     }
     $this->all_roles = array_unique($all_roles);
     return parent::__construct($config);
 }
Ejemplo n.º 3
0
 public function Users()
 {
     parent::__construct();
 }