Ejemplo n.º 1
0
 protected function _show_status()
 {
     $interface = PS_CLI_Interface::getInterface();
     $table = new Cli\Table();
     $table->setHeaders(array('Key', 'Configuration', 'Value'));
     PS_CLI_Utils::add_configuration_value($table, 'PS_UPGRADE_CHANNEL', 'PrestaShop upgrade Channel');
     PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_AUTOUP_BACKUP', 'Automatically backup database and files');
     PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_AUTOUP_KEEP_IMAGES', 'Do not backup images');
     PS_CLI_Utils::add_configuration_value($table, 'PS_AUTOUP_PERFORMANCE', 'Server performance (1: Low; 2: Medium; 3; High)');
     PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_AUTOUP_CUSTOM_MOD_DESACT', 'Disable non native modules');
     PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_AUTOUP_UPDATE_DEFAULT_THEME', 'Use the upgrade default theme');
     PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_AUTOUP_KEEP_MAILS', 'Upgrade the default emails');
     PS_CLI_Interface::display_table($table);
 }