예제 #1
0
 /**
  * Returns the search modes.
  *
  * @return array list of search modes
  */
 public function getSearchModes()
 {
     if ($this->getSearchType() == 'number') {
         return NumberAttribute::getStaticSearchModes();
     } else {
         if ($this->getSearchType() == 'date') {
             return DateAttribute::getStaticSearchModes();
         } else {
             return parent::getSearchModes();
         }
     }
 }