__construct() public method

public __construct ( $name, $group = NULL )
コード例 #1
0
ファイル: CacheCourseRebuild.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('course-rebuild', 'cache');
     $this->addOption('a|all', 'rebuild all courses cache');
     $this->addArgument('courseid');
     $this->minArguments = 0;
 }
コード例 #2
0
ファイル: ModuleManage.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('manage', 'module');
     $this->addArgument('action');
     $this->addArgument('blockname');
     $this->addOption('f|force', 'force delete of module from disk');
 }
コード例 #3
0
ファイル: CourseList.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('list', 'course');
     $this->addArgument('search');
     $this->addOption('i|idnumber', 'show idnumber');
     $this->maxArguments = 255;
 }
コード例 #4
0
ファイル: ModuleReinstall.php プロジェクト: dariogs/moosh
 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');
 }
コード例 #5
0
ファイル: ToolsCodeCheck.php プロジェクト: tmuras/moosh
 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');
 }
コード例 #6
0
ファイル: CourseReset.php プロジェクト: dariogs/moosh
 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');
 }
コード例 #7
0
ファイル: CategoryConfigSet.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('config-set', 'category');
     $this->addArgument('id');
     $this->addArgument('setting');
     $this->addArgument('value');
 }
コード例 #8
0
ファイル: CategoryList.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('list', 'category');
     $this->addArgument('search');
     $this->minArguments = 0;
     $this->maxArguments = 255;
 }
コード例 #9
0
ファイル: CategoryMove.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('move', 'category');
     $this->addArgument('category_id');
     $this->addArgument('destination_category_id');
     $this->maxArguments = 2;
 }
コード例 #10
0
ファイル: ApacheParsePerfLog.php プロジェクト: janeklb/moosh
 public function __construct()
 {
     parent::__construct('parse-perflog', 'apache');
     $this->addArgument('logfile');
     $this->addOption('t|table', 'table name', 'perflog');
     $this->addOption('j|json', 'json');
 }
コード例 #11
0
ファイル: WebserviceCall.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('call', 'webservice');
     $this->addOption('t|token:', 'token');
     $this->addOption('p|params:', 'params');
     $this->addArgument('function');
 }
コード例 #12
0
ファイル: DevVersionbump.php プロジェクト: dariogs/moosh
 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');
 }
コード例 #13
0
ファイル: PluginInstall.php プロジェクト: sergiohermes/moosh
 public function __construct()
 {
     parent::__construct('install', 'plugin');
     $this->addArgument('plugin_name');
     $this->addArgument('moodle_version');
     $this->addArgument('plugin_version');
 }
コード例 #14
0
ファイル: FormAdd.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('add', 'form');
     $this->addArgument('type');
     $this->addArgument('name');
     //$this->maxArguments = 255;
 }
コード例 #15
0
ファイル: CohortUnEnrol.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('unenrol', 'cohort');
     $this->addArgument('cohortid');
     $this->addArgument('userid');
     $this->maxArguments = 255;
 }
コード例 #16
0
ファイル: ReportConcurrency.php プロジェクト: dariogs/moosh
 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);
 }
コード例 #17
0
 public function __construct()
 {
     parent::__construct('enableselfenrol', 'course');
     $this->addOption('k|key:', 'enrolment key - defaults to none');
     $this->addArgument('id');
     $this->maxArguments = 255;
 }
コード例 #18
0
ファイル: LanguagesUpdate.php プロジェクト: dariogs/moosh
 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');
 }
コード例 #19
0
ファイル: ModuleConfig.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('config', 'module');
     $this->addArgument('action');
     $this->addArgument('blockname');
     $this->addArgument('setting');
     $this->addArgument('value');
 }
コード例 #20
0
ファイル: FilterSet.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('set', 'filter');
     $this->addArgument('name');
     $this->addArgument('newstate');
     // On = 1 , Off/but available per course = -1 , Off = -9999
     // TODO: Add proper string flags instead of state numbers, for newstate.
 }
コード例 #21
0
ファイル: CourseBackup.php プロジェクト: eberhardte/moosh
 public function __construct()
 {
     parent::__construct('backup', 'course');
     $this->addOption('f|filename:', 'path to filename to save the course backup');
     $this->addOption('F|fullbackup', 'do full backup instead of general');
     $this->addOption('template', 'do template backup instead of general');
     $this->addArgument('id');
 }
コード例 #22
0
ファイル: RoleCreate.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('create', 'role');
     $this->addOption('n|name:');
     $this->addOption('d|description:');
     $this->addOption('a|archetype:');
     $this->addArgument('shortname');
 }
コード例 #23
0
ファイル: CohortEnrol.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('enrol', 'cohort');
     $this->addOption('u|userid:', 'userid');
     $this->addOption('c|courseid:', 'courseid');
     $this->addArgument('name');
     $this->maxArguments = 255;
 }
コード例 #24
0
ファイル: PluginInstall.php プロジェクト: tmuras/moosh
 public function __construct()
 {
     parent::__construct('install', 'plugin');
     $this->addArgument('plugin_name');
     $this->addArgument('plugin_version');
     $this->addOption('f|force', 'Force installation even if current Moodle version is unsupported.');
     $this->addOption('d|delete', 'If it already exists, automatically delete plugin before installing.');
 }
コード例 #25
0
ファイル: EventFire.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('fire', 'event');
     $this->addArgument('name');
     $this->addArgument('data');
     //$this->addOption('t|test', 'option with no value');
     //$this->addOption('o|option:', 'option with value and default', 'default');
 }
コード例 #26
0
ファイル: DevContext.php プロジェクト: tmuras/moosh
 public function __construct()
 {
     global $DB;
     parent::__construct('context', 'info');
     $this->addArgument('contextid');
     //$this->addOption('t|test', 'option with no value');
     //$this->addOption('o|option:', 'option with value and default', 'default');
 }
コード例 #27
0
ファイル: CourseEnrolledUser.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('enrolleduser', 'course');
     $this->addArgument('role_shortname');
     $this->addArgument('courseid');
     //$this->minArguments = 0;
     $this->maxArguments = 255;
 }
コード例 #28
0
ファイル: CourseRestore.php プロジェクト: dariogs/moosh
 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');
 }
コード例 #29
0
ファイル: FilePath.php プロジェクト: dariogs/moosh
 public function __construct()
 {
     parent::__construct('path', 'file');
     $this->addArgument('id_or_hash');
     $this->minArguments = 0;
     $this->maxArguments = 255;
     $this->addOption('s|stdin', 'read list of file IDs from standard input');
     $this->addOption('r|relative', 'show path relative from Moodle data');
 }
コード例 #30
0
ファイル: CourseInfo.php プロジェクト: tmuras/moosh
 public function __construct()
 {
     global $DB;
     parent::__construct('info', 'course');
     $this->addArgument('courseid');
     $this->addOption('j|json', 'export as json array');
     $this->addOption('c|csv', 'export as csv');
     //$this->addOption('o|option:', 'option with value and default', 'default');
 }