Esempio n. 1
0
 public function shouldInvalidateFilters($grid, $column, $params, $rendererTypes)
 {
     if (!parent::shouldInvalidateFilters($grid, $column, $params, $rendererTypes)) {
         return $this->_extractBoolParam($params['old'], 'boolean_filter') xor $this->_extractBoolParam($params['new'], 'boolean_filter');
     }
     return true;
 }
Esempio n. 2
0
 public function initConfig()
 {
     parent::initConfig();
     $helper = Mage::helper('customgrid');
     if (!Mage::app()->isSingleStoreMode()) {
         $stores = Mage::getModel('adminhtml/system_config_source_store')->toOptionArray();
         array_unshift($stores, array('value' => '0', 'label' => $helper->__('All')));
         $this->addCustomParam('store_id', array('label' => $helper->__('Store Views'), 'type' => 'multiselect', 'values' => $stores, 'value' => 0, 'size' => 4), 10);
     }
     $this->addCustomParam('only_shared', array('label' => $helper->__('Only Shared Wishlists'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 20);
     $this->setCustomParamsWindowConfig(array('height' => 280));
     return $this;
 }
Esempio n. 3
0
 public function initConfig()
 {
     parent::initConfig();
     $helper = Mage::helper('customgrid');
     if (!Mage::app()->isSingleStoreMode()) {
         $stores = Mage::getModel('adminhtml/system_config_source_store')->toOptionArray();
         array_unshift($stores, array('value' => '0', 'label' => $helper->__('All')));
         $this->addCustomParam('store_id', array('label' => $helper->__('Store Views'), 'type' => 'multiselect', 'values' => $stores, 'value' => 0, 'size' => 4), 10);
     }
     $this->addCustomParam('include_inactive', array('label' => $helper->__('Include Inactive Carts'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 20);
     $this->addCustomParam('only_logged_in', array('label' => $helper->__('Only Logged In Carts'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 30);
     $this->addCustomParam('exclude_child_items', array('label' => $helper->__('Exclude Child Items'), 'description' => $helper->__('Eg : simple products associated to their configurable parents'), 'type' => 'select', 'source_model' => 'adminhtml/system_config_source_yesno', 'value' => 0), 40);
     $this->setCustomParamsWindowConfig(array('height' => 330));
     return $this;
 }