Beispiel #1
0
 function getQueryFilterArray()
 {
     if (!$this->table->isSearchable()) {
         return array();
     }
     $queryFilter = array();
     $vars = $this->getSearchVars();
     foreach ($this->table->getFields() as $field) {
         if (array_key_exists($field->getName(), $vars['rex_yform_searchvars']) && $field->getType() == 'value' && $field->isSearchable()) {
             rex_yform::includeClass($field->getType(), $field->getTypeName());
             if (method_exists('rex_yform_' . $field->getTypeName(), 'getSearchFilter')) {
                 $qf = call_user_func('rex_yform_' . $field->getTypeName() . '::getSearchFilter', array('field' => $field, 'fields' => $this->table->getFields(), 'value' => $vars['rex_yform_searchvars'][$field->getName()]));
                 if ($qf != '') {
                     $queryFilter[] = $qf;
                 }
             }
         }
     }
     return $queryFilter;
 }