作者:dariog
项目:moos
public function __construct()
{
parent::__construct('course-rebuild', 'cache');
$this->addOption('a|all', 'rebuild all courses cache');
$this->addArgument('courseid');
$this->minArguments = 0;
}
作者:dariog
项目:moos
protected function getArgumentsHelp()
{
$help = parent::getArgumentsHelp();
$help .= "\n\n";
$help .= "To get all files from course N use 'course=N' as an argument.";
return $help;
}
作者:dariog
项目:moos
protected function getArgumentsHelp()
{
$help = parent::getArgumentsHelp();
$help .= "\n\n";
$help .= "Check moodledata files present on disk but not in DB.";
return $help;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('update', 'languages');
$this->addOption('l|lang', 'use two letters language code (-l=he)');
// Not implemented, yet.
$this->addOption('v|version:', 'version');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('reinstall', 'module');
$this->addArgument('name');
//$this->addOption('t|test', 'option with no value');
//$this->addOption('o|option:', 'option with value and default', 'default');
}
作者:tmura
项目:moos
public function __construct()
{
parent::__construct('code-check');
$this->addOption('p|path:', 'path to check code');
$this->addOption('i|interactive', 'interactive code check');
$this->addOption('r|repair', 'repair code before check. Commit changes before, or data might be lost');
}
作者:dariog
项目:moos
protected function getArgumentsHelp()
{
$help = parent::getArgumentsHelp();
$help .= "\n\n";
$help .= $this->onErrorHelp();
return $help;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('config-set', 'category');
$this->addArgument('id');
$this->addArgument('setting');
$this->addArgument('value');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('versionbump', 'dev');
//$this->addArgument('name');
//$this->addOption('t|test', 'option with no value');
//$this->addOption('o|option:', 'option with value and default', 'default');
}
作者:janekl
项目:moos
public function __construct()
{
parent::__construct('parse-perflog', 'apache');
$this->addArgument('logfile');
$this->addOption('t|table', 'table name', 'perflog');
$this->addOption('j|json', 'json');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('enableselfenrol', 'course');
$this->addOption('k|key:', 'enrolment key - defaults to none');
$this->addArgument('id');
$this->maxArguments = 255;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('call', 'webservice');
$this->addOption('t|token:', 'token');
$this->addOption('p|params:', 'params');
$this->addArgument('function');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('reset', 'course');
$this->addArgument('id');
$this->addOption('n|no-action', 'no action, only show settings');
$this->addOption('s|settings:', 'course restore settings');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('unenrol', 'cohort');
$this->addArgument('cohortid');
$this->addArgument('userid');
$this->maxArguments = 255;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('list', 'category');
$this->addArgument('search');
$this->minArguments = 0;
$this->maxArguments = 255;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('manage', 'module');
$this->addArgument('action');
$this->addArgument('blockname');
$this->addOption('f|force', 'force delete of module from disk');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('concurrency', 'report');
$this->addOption('f|from:', 'from date in YYYYMMDD or YYYY-MM-DD format (default is 30 days backwards)', '-30 days');
$this->addOption('t|to:', 'to date in YYYYMMDD or YYYY-MM-DD format (default is today)');
$this->addOption('p|period:', 'period of time in minutes', 5);
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('list', 'course');
$this->addArgument('search');
$this->addOption('i|idnumber', 'show idnumber');
$this->maxArguments = 255;
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('create', 'role');
$this->addOption('n|name:');
$this->addOption('d|description:');
$this->addOption('a|archetype:');
$this->addArgument('shortname');
}
作者:dariog
项目:moos
public function __construct()
{
parent::__construct('restore', 'course');
$this->addArgument('backup_file');
$this->addArgument('category_id');
$this->addOption('d|directory', 'restore from extracted directory (1st param) under tempdir/backup');
$this->addOption('e|existing', 'restore into existing course, id provided instead of category_id');
}