Example #1
0
 public function getDefaultOperatorInputByType()
 {
     $op = parent::getDefaultOperatorInputByType();
     $op['string'][] = '{%';
     $op['string'][] = '%}';
     return $op;
 }
 /**
  * Overwrite parent method to add new operators
  *
  * @return array
  */
 public function getDefaultOperatorInputByType()
 {
     if ($this->_defaultOperatorInputByType === null) {
         $defaultOperatorInputByType = parent::getDefaultOperatorInputByType();
         $types = array('string', 'numeric');
         foreach ($types as $type) {
             if (isset($defaultOperatorInputByType[$type])) {
                 $defaultOperatorInputByType[$type][] = '><';
                 $defaultOperatorInputByType[$type][] = '<>';
             }
         }
         $this->_defaultOperatorInputByType = $defaultOperatorInputByType;
     }
     return $this->_defaultOperatorInputByType;
 }