public function show_status() { $table = new Cli\Table(); $table->setHeaders(array('Key', 'Configuration', 'Value')); PS_CLI_Utils::add_configuration_value($table, 'PS_LANG_DEFAULT', 'Default language'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_DETECT_LANG', 'Set language from browser'); PS_CLI_Utils::add_configuration_value($table, 'PS_COUNTRY_DEFAULT', 'Default country'); PS_CLI_Utils::add_configuration_value($table, 'PS_TIMEZONE', 'Default timezone'); PS_CLI_Utils::add_configuration_value($table, 'PS_CURRENCY_DEFAULT', 'Default, currency'); PS_CLI_Utils::add_configuration_value($table, 'PS_WEIGHT_UNIT', 'Default weight unit'); PS_CLI_Utils::add_configuration_value($table, 'PS_DISTANCE_UNIT', 'Default distance unit'); PS_CLI_Utils::add_configuration_value($table, 'PS_VOLUME_UNIT', 'Default volume unit'); PS_CLI_Utils::add_configuration_value($table, 'PS_DIMENSION_UNIT', 'Default dimension unit'); PS_CLI_Utils::add_configuration_value($table, 'PS_LOCALE_LANGUAGE', 'Webserver locale ISO code'); PS_CLI_Utils::add_configuration_value($table, 'PS_LOCALE_COUNTRY', 'Webserver country iso code'); $table->display(); }
public static function show_status() { $table = new Cli\Table(); $table->setHeaders(array('Key', 'Configuration', 'Value')); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_SEARCH_INDEXIATION', 'Automatic indexing of products'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_SEARCH_AJAX', 'Enable ajax search'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_INSTANT_SEARCH', 'Enable instant search'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_MINWORDLEN', 'Minimum word length to index'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_BLACKLIST', 'Blacklisted words (separated by |)'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_PNAME', 'Product name weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_REF', 'Reference weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_SHORTDESC', 'Short description weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_DESC', 'Description weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_CNAME', 'Category weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_MNAME', 'Manufacturer weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_TAG', 'Tags weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_ATTRIBUTE', 'Attribute weight'); PS_CLI_Utils::add_configuration_value($table, 'PS_SEARCH_WEIGHT_FEATURE', 'Features weight'); $table->display(); }
public function show_status() { $table = new Cli\Table(); $table->setHeaders(array('Key', 'Configuration', 'Value')); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_STORE_DISPLAY_FOOTER', 'Display link to store locator in the footer'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_STORE_DISPLAY_SITEMAP', 'Display link to store locator in the sitemap'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_STORE_SIMPLIFIED', 'Show a simplified store locator'); PS_CLI_Utils::add_configuration_value($table, 'PS_STORES_CENTER_LAT', 'Default latitude'); PS_CLI_Utils::add_configuration_value($table, 'PS_STORES_CENTER_LONG', 'Default longitude'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_NAME', 'Shop name'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_EMAIL', 'Shop email'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_DETAILS', 'Shop details'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_ADDR1', 'Shop address line 1'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_ADDR2', 'Shop address line 2'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_CODE', 'Zip/postal code'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_CITY', 'City'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_COUNTRY_ID', 'Country ID'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_STATE_ID', 'State ID'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_PHONE', 'Phone number'); PS_CLI_Utils::add_configuration_value($table, 'PS_SHOP_FAX', 'Fax number'); $table->display(); return; }
public function show_status() { $table = new Cli\Table(); $table->setHeaders(array('Key', 'Configuration', 'Value')); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_SMARTY_CACHE', 'Smarty Template Cache'); PS_CLI_Utils::add_configuration_value($table, 'PS_SMARTY_CACHING_TYPE', 'Smarty Caching type', '1.6.0.11'); PS_CLI_Utils::add_configuration_value($table, 'PS_SMARTY_CONSOLE', 'Display smarty console (0 for never, 1 for URL, 2 for always)', '1.6.0.11'); PS_CLI_Utils::add_configuration_value($table, 'PS_SMARTY_CONSOLE_KEY', 'Smarty console key', '1.6.0.11'); $currentConfig = Configuration::getGlobalValue('PS_SMARTY_FORCE_COMPILE'); $line = array('PS_SMARTY_FORCE_COMPILE', 'Smarty Template Compilation (' . _PS_SMARTY_NO_COMPILE_ . ' for never, ' . _PS_SMARTY_CHECK_COMPILE_ . ' for updated, ' . _PS_SMARTY_FORCE_COMPILE_ . ' for always)'); switch ($currentConfig) { case _PS_SMARTY_NO_COMPILE_: array_push($line, $currentConfig . ' (never)'); break; case _PS_SMARTY_CHECK_COMPILE_: array_push($line, $currentConfig . ' (if updated)'); break; case _PS_SMARTY_FORCE_COMPILE_: array_push($line, $currentConfig . ' (Always)'); break; } $table->addRow($line); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_CSS_THEME_CACHE', 'Css cache'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_JS_THEME_CACHE', 'JS cache'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_HTACCESS_CACHE_CONTROL', 'Htaccess cache control'); PS_CLI_Utils::add_boolean_configuration_status($table, 'PS_MEDIA_SERVERS', 'Use Media Servers'); $line = array('PS_CIPHER_ALGORITHM', 'Cipher (0=blowfish, 1=rijndael)'); if (Configuration::getGlobalValue('PS_CIPHER_ALGORITHM')) { array_push($line, 'RIJNDAEL/Mcrypt'); } else { array_push($line, 'Local Blowfish'); } $table->addRow($line); $line = array('Const: _PS_CACHE_ENABLED_', 'Cache'); if (_PS_CACHE_ENABLED_) { array_push($line, 'enabled'); } else { array_push($line, 'disabled'); } $table->addRow($line); $table->addRow(array('Const: _PS_CACHING_SYSTEM_', 'Active Caching system', _PS_CACHING_SYSTEM_)); $table->display(); return; }
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); }