Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->table->addOperation('roles', "Add Role(s)");
     $this->table->addOperation('reset_password', "Reset Password");
     $this->table->addOperation('disable_user', "Disable User", "javascript:wyf.confirmRedirect('Are you sure you want to disable user?','{$this->urlPath}/%path%/%key%')");
 }
 public function __construct($extension)
 {
     parent::__construct($extension);
     $systemCache = $this->getApp()->getCacheRepository('system');
     $cacheKey = get_called_class() . get_class() . '::__construct';
     if ($systemCache != null && ($cache = $systemCache->get($cacheKey)) != null) {
         $this->documentationName = $cache;
         return;
     }
     // If this was an autogenerated RESTModelController instead of an overridden one, the name in the documentation
     // should be based on the Model class, unless it was changed on the overrride
     if (get_called_class() == 'MABI\\RESTModelController') {
         $this->documentationName = ucwords(ReflectionHelper::stripClassName($this->modelClass));
     }
     if ($systemCache != null) {
         $systemCache->forever($cacheKey, $this->documentationName);
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct(".roles");
     $this->table->addOperation("permissions", "Permissions");
 }
Example #4
0
 public function __construct()
 {
     parent::__construct(".users");
     $this->table->addOperation('reset', "Reset Password");
 }
Example #5
0
 public function __construct()
 {
     parent::__construct("common.roles");
     $this->table->addOperation("permissions", "Permissions");
     //$this->table->addOperation("constraints", "Set Constraints");
 }