/** * 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(); } } }