Beispiel #1
0
 /**
  * Join store relation table if there is store filter
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('mgs_storelocator/storelocator_store')), 'main_table.storelocator_id = store_table.storelocator_id', array());
     }
     return parent::_renderFiltersBefore();
 }
 /**
  * Join store relation table data if store filter is used
  *
  * @return Scandi_MenuManager_Model_Resource_Menu_Collection
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store_id')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('scandi_menumanager/menu_store')), 'main_table.menu_id = store_table.menu_id', array())->group('main_table.menu_id');
     }
     return parent::_renderFiltersBefore();
 }
Beispiel #3
0
 /**
  * Apply custom filtering
  */
 protected function _renderFiltersBefore()
 {
     if (!$this->getLoadDefault()) {
         $this->getSelect()->where('main_table.website_id > ?', 0);
     }
     parent::_renderFiltersBefore();
 }
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('deal/deal_store')), 'main_table.entity_id = store_table.deal_id', array())->group('main_table.entity_id');
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
Beispiel #5
0
 /**
  * Join store relation table if there is store filter
  *
  * @access protected
  * @return DB1_AnyMarket_Model_Resource_Anymarketproducts_Collection
  * 
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('db1_anymarket/anymarketproducts_store')), 'main_table.entity_id = store_table.anymarketproducts_id', array())->group('main_table.entity_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
 /**
  * Join store relation table if there is store filter
  *
  * @access protected
  * @return Ibrams_CmsExtended_Model_Resource_Cmspage_Comment_Collection
  * @author Ultimate Module Creator
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('ibrams_cmsextended/cmspage_comment_store')), 'main_table.comment_id = store_table.comment_id', array())->group('main_table.comment_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
 /**
  * Join store relation table if there is store filter
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('antoinek_slider/slider_store')), 'main_table.slider_id = store_table.slider_id', array())->group('main_table.slider_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
Beispiel #8
0
 /**
  * Join store relation table if there is store filter
  *
  * @access protected
  * @return Zoffio_DiscountTypes_Model_Resource_Title_Collection
  * @author Ultimate Module Creator
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(array('store_table' => $this->getTable('zoffio_discounttypes/title_store')), 'main_table.entity_id = store_table.title_id', array())->group('main_table.entity_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
 /**
  * Join store relation table if there is store filter
  *
  * @return NULL
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store_id')) {
         $this->getSelect()->join(array('demac_multilocationinventory_stores' => $this->getTable('demac_multilocationinventory/stores')), 'main_table.id = demac_multilocationinventory_stores.location_id', array())->group('main_table.id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
 /**
  * Join store relation table if there is store filter
  *
  * @return self
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store')) {
         $this->getSelect()->join(['store_table' => $this->getTable('esendex_sms/trigger_store')], 'main_table.entity_id = store_table.trigger_id', [])->group('main_table.entity_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
Beispiel #11
0
 /**
  * Join store relation table if there is store filter
  */
 protected function _renderFiltersBefore()
 {
     if ($this->getFilter('store_id')) {
         $this->getSelect()->join(array('onibi_storelocator_stores' => $this->getTable('onibi_storelocator/stores')), 'main_table.entity_id = onibi_storelocator_stores.storelocator_id', array())->group('main_table.entity_id');
         /*
          * Allow analytic functions usage because of one field grouping
          */
         $this->_useAnalyticFunction = true;
     }
     return parent::_renderFiltersBefore();
 }
Beispiel #12
0
 /**
  * Join store relation table if there is store filter
  *
  * @access protected
  * @return DB1_AnyMarket_Model_Resource_Anymarketimage_Collection
  * 
  */
 protected function _renderFiltersBefore()
 {
     return parent::_renderFiltersBefore();
 }