本文整理汇总了PHP中Moosh\MooshCommand类的典型用法代码示例。如果您正苦于以下问题:PHP MooshCommand类的具体用法?PHP MooshCommand怎么用?PHP MooshCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MooshCommand类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct('course-rebuild', 'cache');
$this->addOption('a|all', 'rebuild all courses cache');
$this->addArgument('courseid');
$this->minArguments = 0;
}
示例2: getArgumentsHelp
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;
}
示例3: getArgumentsHelp
protected function getArgumentsHelp()
{
$help = parent::getArgumentsHelp();
$help .= "\n\n";
$help .= "Check moodledata files present on disk but not in DB.";
return $help;
}
示例4: __construct
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');
}
示例5: __construct
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');
}
示例6: __construct
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');
}
示例7: getArgumentsHelp
protected function getArgumentsHelp()
{
$help = parent::getArgumentsHelp();
$help .= "\n\n";
$help .= $this->onErrorHelp();
return $help;
}
示例8: __construct
public function __construct()
{
parent::__construct('config-set', 'category');
$this->addArgument('id');
$this->addArgument('setting');
$this->addArgument('value');
}
示例9: __construct
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');
}
示例10: __construct
public function __construct()
{
parent::__construct('parse-perflog', 'apache');
$this->addArgument('logfile');
$this->addOption('t|table', 'table name', 'perflog');
$this->addOption('j|json', 'json');
}
示例11: __construct
public function __construct()
{
parent::__construct('enableselfenrol', 'course');
$this->addOption('k|key:', 'enrolment key - defaults to none');
$this->addArgument('id');
$this->maxArguments = 255;
}
示例12: __construct
public function __construct()
{
parent::__construct('call', 'webservice');
$this->addOption('t|token:', 'token');
$this->addOption('p|params:', 'params');
$this->addArgument('function');
}
示例13: __construct
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');
}
示例14: __construct
public function __construct()
{
parent::__construct('unenrol', 'cohort');
$this->addArgument('cohortid');
$this->addArgument('userid');
$this->maxArguments = 255;
}
示例15: __construct
public function __construct()
{
parent::__construct('list', 'category');
$this->addArgument('search');
$this->minArguments = 0;
$this->maxArguments = 255;
}