예제 #1
0
파일: AddRight.php 프로젝트: mdouchin/jelix
 protected function configure()
 {
     $this->setName('acl2:add')->setDescription('Add a right')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'group id')->addArgument('subject', InputArgument::REQUIRED, 'The name of the subject')->addArgument('resource', InputArgument::OPTIONAL, 'the resource value', '-');
     parent::configure();
 }
예제 #2
0
 protected function configure()
 {
     $this->setName('acl2group:default')->setDescription('Set a user group as default group for new users')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'the group id')->addOption('no-default', null, InputOption::VALUE_NONE, 'To set the group as non default group for new users');
     parent::configure();
 }
예제 #3
0
 protected function configure()
 {
     $this->setName('acl2user:addgroup')->setDescription('Add a user into a group')->setHelp('')->addArgument('login', InputArgument::REQUIRED, 'the login of the user')->addArgument('group', InputArgument::REQUIRED, 'the group id in which the user should be added');
     parent::configure();
 }
예제 #4
0
 protected function configure()
 {
     $this->setName('acl2group:delete')->setDescription('Delete a group')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'the group id to delete')->addOption('confirm', null, InputOption::VALUE_NONE, 'Avoid to wait after user confirmation');
     parent::configure();
 }
예제 #5
0
 protected function configure()
 {
     $this->setName('acl2:remove')->setDescription('Remove a right')->setHelp('')->addArgument('group', InputArgument::REQUIRED, 'group id')->addArgument('subject', InputArgument::REQUIRED, 'The name of the subject')->addArgument('resource', InputArgument::OPTIONAL, 'the resource value', '-')->addOption('allres', null, InputOption::VALUE_NONE, 'remove also all resource rights with the given subject')->addOption('confirm', null, InputOption::VALUE_NONE, 'Avoid to wait after user confirmation');
     parent::configure();
 }
예제 #6
0
 protected function configure()
 {
     $this->setName('acl2user:list')->setDescription('List of users')->setHelp('')->addArgument('group', InputArgument::OPTIONAL, 'the group id filter');
     parent::configure();
 }
예제 #7
0
 protected function configure()
 {
     $this->setName('acl2user:removegroup')->setDescription('Remove a user from a group')->setHelp('')->addArgument('login', InputArgument::REQUIRED, 'the login of the user')->addArgument('group', InputArgument::REQUIRED, 'the group id from which the user should be removed');
     parent::configure();
 }