예제 #1
0
 public function __construct($identifier = NULL)
 {
     if ($identifier !== 'start' && $identifier !== 'restart' && $identifier !== 'stop') {
         throw new \InvalidArgumentException(sprintf('%s: module identifier must be one of "start", "stop", "restart".', get_class($this)), 1454344469);
     }
     parent::__construct($identifier);
 }
 public function __construct($identifier = NULL)
 {
     if ($identifier !== 'lock' && $identifier !== 'unlock') {
         throw new \InvalidArgumentException(sprintf('%s: module identifier must be one of "lock" or "unlock".', get_class($this)), 1325579395);
     }
     parent::__construct($identifier);
 }
예제 #3
0
 /**
  * 
  * @param \Nethgui\Controller\Table\AbstractAction $action
  * @param string $pluginsPath 
  */
 public function __construct(\Nethgui\Controller\Table\AbstractAction $action, $pluginsPath = NULL)
 {
     if (is_null($pluginsPath)) {
         $id = \Nethgui\array_end(explode('\\', get_class($action)));
     } else {
         $id = \Nethgui\array_end(explode('/', $pluginsPath));
     }
     parent::__construct();
     // empty identifier
     $this->innerAction = $action;
     $this->plugins = new \Nethgui\Controller\Table\PluginCollector($id);
     $this->plugins->setParent($action);
     $this->pluginsPath = $pluginsPath;
 }
 public function __construct($identifier = NULL)
 {
     parent::__construct($identifier);
     $this->stash = new \NethServer\Tool\PasswordStash();
     $this->stash->setAutoUnlink(TRUE);
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct('reset-permissions');
 }