예제 #1
0
파일: Address.php 프로젝트: rcclaudrey/dev
 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;
 }
예제 #3
0
파일: Abstract.php 프로젝트: quyip8818/Mag
 /**
  * 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;
 }