public static function validColumnType($type) { return in_array($type, ['string', 'select']); }
/** * Returns column search type (if valid and provided) * * @return string */ public function searchType() { return isset($this->_data['type']) && ResourceTable::validColumnType($this->_data['type']) ? $this->_data['type'] : ResourceTable::DEFAULT_COLUMN_TYPE; }