• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Moosh\MooshCommand类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Moosh\MooshCommand的典型用法代码示例。如果您正苦于以下问题:PHP MooshCommand类的具体用法?PHP MooshCommand怎么用?PHP MooshCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了MooshCommand类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: __construct

 public function __construct()
 {
     parent::__construct('manage', 'module');
     $this->addArgument('action');
     $this->addArgument('blockname');
     $this->addOption('f|force', 'force delete of module from disk');
 }
开发者ID:dariogs,项目名称:moosh,代码行数:7,代码来源:ModuleManage.php


示例17: __construct

 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);
 }
开发者ID:dariogs,项目名称:moosh,代码行数:7,代码来源:ReportConcurrency.php


示例18: __construct

 public function __construct()
 {
     parent::__construct('list', 'course');
     $this->addArgument('search');
     $this->addOption('i|idnumber', 'show idnumber');
     $this->maxArguments = 255;
 }
开发者ID:dariogs,项目名称:moosh,代码行数:7,代码来源:CourseList.php


示例19: __construct

 public function __construct()
 {
     parent::__construct('create', 'role');
     $this->addOption('n|name:');
     $this->addOption('d|description:');
     $this->addOption('a|archetype:');
     $this->addArgument('shortname');
 }
开发者ID:dariogs,项目名称:moosh,代码行数:8,代码来源:RoleCreate.php


示例20: __construct

 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');
 }
开发者ID:dariogs,项目名称:moosh,代码行数:8,代码来源:CourseRestore.php



注:本文中的Moosh\MooshCommand类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP HTMLForm\CForm类代码示例发布时间:2022-05-23
下一篇:
PHP Handler\TestHandler类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap