Exemplo n.º 1
0
 public function _construct()
 {
     parent::_construct();
     // Initialize view
     // ---------------------------------------
     $view = $this->getHelper('View')->getCurrentView();
     $this->viewComponentHelper = $this->getHelper('View')->getComponentHelper($view);
     // ---------------------------------------
     $channel = $this->getRequest()->getParam('channel');
     // Initialization block
     // ---------------------------------------
     $this->setId($view . ucfirst($channel) . 'ListingOtherLogGrid' . $this->getEntityId());
     // ---------------------------------------
     // Set default values
     // ---------------------------------------
     $this->setDefaultSort('create_date');
     $this->setDefaultDir('DESC');
     $this->setSaveParametersInSession(true);
     $this->setUseAjax(true);
     // ---------------------------------------
 }
Exemplo n.º 2
0
 public function _construct()
 {
     parent::_construct();
     $task = $this->getRequest()->getParam('task');
     $channel = $this->getRequest()->getParam('channel');
     // Initialization block
     // ---------------------------------------
     $this->setId('synchronizationLogGrid' . (!is_null($task) ? $task : '') . ucfirst($channel));
     // ---------------------------------------
     // Set default values
     // ---------------------------------------
     $this->setDefaultSort('create_date');
     $this->setDefaultDir('DESC');
     $this->setSaveParametersInSession(true);
     $this->setUseAjax(true);
     $filters = array();
     !is_null($task) && ($filters['task'] = $task);
     !is_null($task) && ($filters['component_mode'] = $channel);
     $this->setDefaultFilter($filters);
     // ---------------------------------------
     $this->actionsTitles = $this->activeRecordFactory->getObject('Synchronization\\Log')->getActionsTitles();
 }