/**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:show_mail_conf')->setDescription('Returns the current mail config');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_data_files')->setDescription('Cleans the data directory');
 }
 /**
  *
  */
 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:clean_config_files')->setDescription('Cleans the config files to help you re-install');
 }
 /**
  *
  */
 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');
 }
 /**
  *
  */
 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.');
 }
 /**
  *
  */
 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');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:drop_databases')->setDescription('Drops all databases from the current Chamilo install');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:sql_cli')->setDescription('Enters to the SQL command line');
     $this->setHelp('Prompts a SQL cli');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:show_conn_info')->setDescription('Shows database connection credentials for the current Chamilo install');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:restore')->setDescription('Allows you to restore an SQL dump right into the active database of a given Chamilo installation (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');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('translation:disable')->setAliases(array('tdl'))->setDescription('Disables a (enabled) language')->addArgument('language', InputArgument::REQUIRED, 'The English name for the language to disable.');
 }
 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).');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:clean_temp_folder')->setDescription('Cleans the temp directory.');
 }
 /**
  * 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.');
 }
 /**
  *
  */
 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.');
 }
 /**
  *
  */
 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');
 }
 /**
  *
  */
 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)');
 }
示例#19
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('db:dump')->setDescription('Outputs a dump of the database');
 }
 /**
  *
  */
 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');
 }
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('files:generate_temp_folders')->setDescription('Generate temp folder structure: twig');
 }
 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.');
 }