예제 #1
0
 /**
  * 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;
 }