/** * Prepare grid collection object * * @return this */ protected function _prepareCollection() { if (!is_null($this->_blcg_typeModel)) { $this->_blcg_typeModel->beforeGridPrepareCollection($this, $this->_blcg_prepareEventsEnabled); } if ($this->_blcg_prepareEventsEnabled) { Mage::getSingleton('customgrid/observer')->beforeGridPrepareCollection($this); $return = parent::_prepareCollection(); Mage::getSingleton('customgrid/observer')->afterGridPrepareCollection($this); } else { $return = parent::_prepareCollection(); } if (!is_null($this->_blcg_typeModel)) { $this->_blcg_typeModel->afterGridPrepareCollection($this, $this->_blcg_prepareEventsEnabled); } return $return; }