當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Moosh\MooshCommand類代碼示例

本文整理匯總了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;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CacheCourseRebuild.php

示例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;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:FileList.php

示例3: getArgumentsHelp

 protected function getArgumentsHelp()
 {
     $help = parent::getArgumentsHelp();
     $help .= "\n\n";
     $help .= "Check moodledata files present on disk but not in DB.";
     return $help;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:DBCheck.php

示例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');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:LanguagesUpdate.php

示例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');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:ModuleReinstall.php

示例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');
 }
開發者ID:tmuras,項目名稱:moosh,代碼行數:7,代碼來源:ToolsCodeCheck.php

示例7: getArgumentsHelp

 protected function getArgumentsHelp()
 {
     $help = parent::getArgumentsHelp();
     $help .= "\n\n";
     $help .= $this->onErrorHelp();
     return $help;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:FormAdd.php

示例8: __construct

 public function __construct()
 {
     parent::__construct('config-set', 'category');
     $this->addArgument('id');
     $this->addArgument('setting');
     $this->addArgument('value');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CategoryConfigSet.php

示例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');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:DevVersionbump.php

示例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');
 }
開發者ID:janeklb,項目名稱:moosh,代碼行數:7,代碼來源:ApacheParsePerfLog.php

示例11: __construct

 public function __construct()
 {
     parent::__construct('enableselfenrol', 'course');
     $this->addOption('k|key:', 'enrolment key - defaults to none');
     $this->addArgument('id');
     $this->maxArguments = 255;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CourseEnableselfenrol.php

示例12: __construct

 public function __construct()
 {
     parent::__construct('call', 'webservice');
     $this->addOption('t|token:', 'token');
     $this->addOption('p|params:', 'params');
     $this->addArgument('function');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:WebserviceCall.php

示例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');
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CourseReset.php

示例14: __construct

 public function __construct()
 {
     parent::__construct('unenrol', 'cohort');
     $this->addArgument('cohortid');
     $this->addArgument('userid');
     $this->maxArguments = 255;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CohortUnEnrol.php

示例15: __construct

 public function __construct()
 {
     parent::__construct('list', 'category');
     $this->addArgument('search');
     $this->minArguments = 0;
     $this->maxArguments = 255;
 }
開發者ID:dariogs,項目名稱:moosh,代碼行數:7,代碼來源:CategoryList.php


注:本文中的Moosh\MooshCommand類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。