public function getDefaultOperatorInputByType() { $op = parent::getDefaultOperatorInputByType(); $op['string'][] = '{%'; $op['string'][] = '%}'; return $op; }
/** * 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('==', '!=', '{}', '!{}'); } return $this->_defaultOperatorInputByType; }
/** * 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'; } return $this->_defaultOperatorInputByType; }