table = 'ets_rv_unsubscribe'; $this->className = 'EtsRVUnsubscribe'; $this->identifier = 'id_ets_rv_unsubscribe'; parent::__construct(); $this->allow_export = true; $this->_redirect = false; $this->list_no_link = true; $this->lang = false; $this->addRowAction('delete'); $this->_defaultOrderBy = 'id_ets_rv_unsubscribe'; $this->_defaultOrderWay = 'DESC'; $this->fields_list = array( 'id_ets_rv_unsubscribe' => array( 'title' => $this->l('ID', 'AdminEtsRVUnsubscribeController'), 'type' => 'int', 'filter_key' => 'a!id_ets_rv_unsubscribe', 'class' => 'fixed-width-xs text-center', ), 'email' => array( 'title' => $this->l('Email', 'AdminEtsRVUnsubscribeController'), 'type' => 'text', 'filter_key' => 'a!email', ), 'active' => array( 'title' => $this->l('Unsubscribed', 'AdminEtsRVUnsubscribeController'), 'type' => 'bool', 'filter_key' => 'a!active', 'active' => 'status', 'class' => 'fixed-width-lg text-center', ), 'date_add' => array( 'title' => $this->l('Date', 'AdminEtsRVUnsubscribeController'), 'filter_key' => 'a!date', 'type' => 'date', 'class' => 'fixed-width-lg text-center', ), ); } public function initProcess() { $submit_bulk_actions = [ 'enableSelection', 'disableSelection' ]; foreach ($submit_bulk_actions as $submit_bulk_action) { if (Tools::isSubmit('submitBulk' . $submit_bulk_action . $this->table) || Tools::isSubmit('submitBulk' . $submit_bulk_action)) { $this->action = 'bulk' . $submit_bulk_action; $this->boxes = Tools::getValue($this->table . 'Box'); } } parent::initProcess(); } }