* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6844 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class AdminLogsControllerCore extends AdminController { public function __construct() { $this->table = 'log'; $this->className = 'Logger'; $this->lang = false; $this->noLink = true; $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fieldsDisplay = array( 'id_log' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'severity' => array('title' => $this->l('Severity (1-4)'), 'align' => 'center', 'width' => 50), 'message' => array('title' => $this->l('Message'), 'width' => 377), 'object_type' => array('title' => $this->l('Object type'), 'width' => 75), 'object_id' => array('title' => $this->l('Object ID'), 'width' => 50), 'error_code' => array('title' => $this->l('Error code'), 'width' => 75, 'prefix' => '0x'), 'date_add' => array('title' => $this->l('Date'), 'width' => 35, 'align' => 'right', 'type' => 'datetime') ); $this->options = array( 'general' => array( 'title' => $this->l('Logs by e-mail'), 'fields' => array( 'PS_LOGS_BY_EMAIL' => array( 'title' => $this->l('Minimum severity level:'), 'desc' => $this->l('Put "5" if you don\'t want to receive any emails.').'
'.$this->l('Emails will be sent to the shop owner.'), 'cast' => 'intval', 'type' => 'text', 'size' => 5 ), ), 'submit' => array() ), ); parent::__construct(); } /** * Assign smarty variables for all default views, list and form, then call other init functions */ public function initContent() { $this->context->smarty->assign(array( 'table' => $this->table, 'current' => self::$currentIndex, 'token' => $this->token, 'list' => $this->initList(), 'options' => $this->initOptions() )); } } ?>