示例#1
0
 /**
  * Define options for the command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:delete_multi_url')->setDescription('Deletes one URL out of a multi-url campus')->addArgument('url', InputArgument::OPTIONAL, 'The ID of the URL to be deleted')->addOption('list', null, InputOption::VALUE_NONE, 'Show the list of multi-url portals')->addOption('show', null, InputOption::VALUE_NONE, 'Show the list of courses directories to be deleted')->addOption('du', null, InputOption::VALUE_NONE, 'Show disk usage for each course (only with --show)')->addOption('delete-users', null, InputOption::VALUE_NONE, 'Also delete users that are only defined in the main portal and the given URL');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:set_permissions_after_install')->setDescription('Set permissions')->addOption('linux-user', null, InputOption::VALUE_OPTIONAL, 'user', 'www-data')->addOption('linux-group', null, InputOption::VALUE_OPTIONAL, 'group', 'www-data');
 }
示例#3
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:import_language')->setDescription('Import a Chamilo language package')->addArgument('file', InputArgument::REQUIRED, 'Path of the language package');
 }
示例#4
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:enable')->setAliases(array('tel'))->setDescription('Enables a (disabled) language')->addArgument('language', InputArgument::REQUIRED, 'The English name for the language to enable.');
 }
示例#5
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:restore')->setDescription('Restore an SQL dump into the active Chamilo database (which will also erase all previous data in that database)')->addArgument('file', InputArgument::REQUIRED, 'Specify the dump\'s full path, e.g. database:restore /tmp/dump.sql');
 }
示例#6
0
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:add_sub_language')->setAliases(array('tasl'))->setDescription('Creates a sub-language')->addArgument('parent', InputArgument::REQUIRED, 'The parent language (English name) for the new sub-language.')->addArgument('sublanguage', InputArgument::REQUIRED, 'The English name for the new sub-language.');
 }
示例#7
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_temp_folder')->setAliases(array('fct'))->setDescription('Cleans the temp directory.');
 }
示例#8
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:convert_videos')->setDescription('Converts all videos found in the given directory (recursively) to the given format, using the ffmpeg command line')->addArgument('source', InputArgument::REQUIRED, 'The directory containing the videos, as an absolute path')->addOption('ext', null, InputOption::VALUE_REQUIRED, 'The extension of the files to be found and converted - defaults to "webm"')->addOption('orig-ext', null, InputOption::VALUE_REQUIRED, 'The extension that we want to add to the original files. Defaults to "orig", so video.webm will be saved as video.orig.webm. Use "none" to skip saving the original.')->addOption('fps', null, InputOption::VALUE_REQUIRED, 'The fps we want the final videos to be outputted in. Defaults to 24')->addOption('bitrate', null, InputOption::VALUE_REQUIRED, 'The bitrate (~image quality) we want to export in, expressed in Kbits. Defaults to 512Kbits.');
 }
示例#9
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:show_disk_usage')->setAliases(array('fsdu'))->setDescription('Shows the disk usage vs allowed space, per course')->addOption('multi-url', null, InputOption::VALUE_NONE, 'Show the results split by url, if using the multi-url feature, using an unprecise "best-guess" process considering all session-specific material to be part of the same root course')->addOption('csv', null, InputOption::VALUE_NONE, 'Skip confirmation question and output directly to semi-column CSV format')->addOption('KB', null, InputOption::VALUE_NONE, 'Show results in KB instead of MB')->addOption('documents-only', null, InputOption::VALUE_NONE, 'Show results only from the document directory')->addOption('precision', null, InputOption::VALUE_OPTIONAL, 'Precision to show results', '1');
 }
示例#10
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:sql_cli')->setAliases(array('dbc', 'dbcli'))->setDescription('Enters to the SQL command line');
     $this->setHelp('Prompts a SQL cli');
 }
示例#11
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setHelp('The full_backup command allows you to do a full backup of the files and database of a given Chamilo installation');
     $this->setName('db:full_backup')->setDescription('Generates a .tgz from the Chamilo files and database')->addArgument('result', InputArgument::REQUIRED, 'Allows you to specify a destination file, e.g. database:full_backup /home/user/backup.tgz or backup.tgz')->addOption('tmp', null, InputOption::VALUE_OPTIONAL, 'Allows you to specify in which temporary directory the backup files should be placed (optional, defaults to /tmp)')->addOption('del-archive', null, InputOption::VALUE_NONE, 'Deletes the contents of the archive/ directory before the backup is executed');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:update_directory_max_size')->setAliases(array('fudms'))->setDescription('Increases the max disk space for all the courses reaching a certain threshold.')->addOption('threshold', null, InputOption::VALUE_NONE, 'Sets the threshold, in %, above which a course size should be automatically increased')->addOption('add-size', null, InputOption::VALUE_NONE, 'Number of MB to add to the max size of the course');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_deleted_documents')->setDescription('Cleans the documents that were deleted but left as _DELETED_')->addOption('size', null, InputOption::VALUE_NONE, 'Show the total size of space that will be freed. Requires more processing')->addOption('list', null, InputOption::VALUE_NONE, 'Show the complete list of files to be deleted before asking for confirmation')->addOption('from-db', null, InputOption::VALUE_NONE, 'Also delete items from the c_document table')->addOption('category', null, InputOption::VALUE_OPTIONAL, 'Only delete items from courses in this category (given as category code)');
 }
示例#14
0
 /**
  * Set the input variables and what will be shown in command helper
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:terms_package')->setDescription('Generates a package of given language terms')->addArgument('source', InputArgument::REQUIRED, 'The directory containing the reference files and terms, in English')->addArgument('language', InputArgument::REQUIRED, 'The language in which you want the package of files and terms')->addArgument('dest', InputArgument::REQUIRED, 'The directory in which you want the package files to be put')->addOption('tgz', null, InputOption::VALUE_NONE, 'Add this option to compress the files (including the directories and the original English form) into one .tar.gz file ready for shipping')->addOption('new', null, InputOption::VALUE_NONE, 'Allow new languages (languages that do not exist yet). This will generate empty (but usable) translation files.');
 }
示例#15
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:replace_url')->setDescription('Cleans the config files to help you re-install')->addArgument('search', InputArgument::REQUIRED, 'The string to search')->addArgument('replace', InputArgument::REQUIRED, 'The string to replace');
 }
示例#16
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:platform_language')->setAliases(array('tpl'))->setDescription('Gets or sets the platform language')->addArgument('language', InputArgument::OPTIONAL, 'Which language you want to set (English name). Leave empty to get current language.');
 }
示例#17
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:show_mail_conf')->setDescription('Returns the current mail config');
 }
示例#18
0
 protected function configure()
 {
     parent::configure();
     $this->setName('chash:chamilo_status')->setDescription('Show the information of the current Chamilo installation');
 }
示例#19
0
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:list')->setAliases(array('tl'))->setDescription('Gets all languages as a list')->addArgument('availability', InputArgument::OPTIONAL, 'Filter the availability we want (0 for disabled, 1 for enabled, empty for all).');
 }
示例#20
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:sql_count')->setDescription('Count the number of rows in a specific table')->addArgument('table', InputArgument::REQUIRED, 'Name of the table');
 }
示例#21
0
 /**
  * Define options for the command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:delete_courses')->setDescription('Given an ID, code or category code, deletes one or several courses completely')->addOption('course-id', null, InputOption::VALUE_REQUIRED, 'The numerical course ID')->addOption('course-code', null, InputOption::VALUE_REQUIRED, 'The literal course code')->addOption('course-category', null, InputOption::VALUE_REQUIRED, 'The literal course category code')->addOption('before-date', null, InputOption::VALUE_REQUIRED, 'Course creation date in YYYY-MM-DD format to use as filter: delete all created before this date')->addOption('show-disk-usage', null, InputOption::VALUE_NONE, 'Show the disk usage of each course')->addOption('delete', null, InputOption::VALUE_NONE, 'Use to confirm deletion (otherwise corresponding courses are only printed)');
 }
示例#22
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_courses_files')->setAliases(array('ccf'))->setDescription('Cleans the courses directory');
 }
示例#23
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:dump')->setDescription('Outputs a dump of the database');
 }
示例#24
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:export_language')->setDescription('Exports a Chamilo language package')->addArgument('language', InputArgument::REQUIRED, 'Which language you want to export')->addOption('tmp', null, InputOption::VALUE_OPTIONAL, 'Allows you to specify in which temporary directory the backup files should be placed (optional, defaults to /tmp)');
 }
示例#25
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:show_conn_info')->setDescription('Shows database connection credentials for the current Chamilo install');
 }
示例#26
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_config_files')->setDescription('Cleans the config files to help you re-install');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:generate_temp_folders')->setDescription('Generate temp folder structure: twig');
 }
示例#28
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:drop_databases')->setDescription('Drops all databases from the current Chamilo install');
 }