• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /dokuwiki/lib/plugins/usermanager/

Lines Matching refs:options

24     protected function setup(Options $options)
27 $options->setHelp(
32 $options->registerCommand('list', 'List users');
33 $options->registerOption('verbose', 'Show detailed user information', 'v', false, 'list');
36 $options->registerCommand('add', 'Add an user to auth backend');
37 $options->registerArgument('login', 'Username', true, 'add');
38 $options->registerArgument('mail', 'Email address', true, 'add');
39 $options->registerArgument('name', 'Full name', false, 'add');
40 $options->registerArgument('groups', 'Groups to be added, comma-seperated', false, 'add');
41 $options->registerArgument('password', 'Password to set', false, 'add');
42 $options->registerOption('notify', 'Notify user', 'n', false, 'add');
45 $options->registerCommand('delete', 'Deletes user(s) from auth backend');
46 $options->registerArgument('name', 'Username(s), comma-seperated', true, 'delete');
49 $options->registerCommand('addtogroup', 'Add user to group(s)');
50 $options->registerArgument('name', 'Username', true, 'addtogroup');
51 $options->registerArgument('group', 'Group(s), comma-seperated', true, 'addtogroup');
54 $options->registerCommand('removefromgroup', 'Remove user from group(s)');
55 $options->registerArgument('name', 'Username', true, 'removefromgroup');
56 $options->registerArgument('group', 'Group(s), comma-separated', true, 'removefromgroup');
60 protected function main(Options $options)
70 switch ($options->getCmd()) {
72 $ret = $this->cmdList($options->getOpt('verbose'));
75 $ret = $this->cmdAdd($options->getOpt('notify'), $options->getArgs());
78 $ret = $this->cmdDelete($options->getArgs());
81 $ret = $this->cmdAddToGroup($options->getArgs());
84 $ret = $this->cmdRemoveFromGroup($options->getArgs());
88 echo $options->help();