/**
  * Default operator input by type map getter
  *
  * @return array
  */
 public function getDefaultOperatorInputByType()
 {
     if (null === $this->_defaultOperatorInputByType) {
         parent::getDefaultOperatorInputByType();
         $this->_defaultOperatorInputByType['multiselect'] = array('()', '!()');
     }
     return $this->_defaultOperatorInputByType;
 }
Example #2
0
 /**
  * Customize default operator input by type mapper for some types
  * @return array
  */
 public function getDefaultOperatorInputByType()
 {
     if (null === $this->_defaultOperatorInputByType) {
         parent::getDefaultOperatorInputByType();
         $this->_defaultOperatorInputByType['numeric'] = array('==', '!=', '>=', '>', '<=', '<');
         $this->_defaultOperatorInputByType['string'] = array('==', '!=', '{}', '!{}');
         $this->_defaultOperatorInputByType['category'] = array('{}', '!{}');
     }
     return $this->_defaultOperatorInputByType;
 }
Example #3
0
 /**
  * Customize default operator input by type mapper for some types
  *
  * @return array
  */
 public function getDefaultOperatorInputByType()
 {
     if (null === $this->_defaultOperatorInputByType) {
         parent::getDefaultOperatorInputByType();
         /*
          * '{}' and '!{}' are left for back-compatibility and equal to '==' and '!='
          */
         $this->_defaultOperatorInputByType['category'] = array('==', '!=', '{}', '!{}', '()', '!()');
         $this->_arrayInputTypes[] = 'category';
         // $this->_defaultOperatorInputByType['product'] = array('==', '!=', '{}', '!{}', '()', '!()');
         // $this->_arrayInputTypes[] = 'product';
     }
     return $this->_defaultOperatorInputByType;
 }