Пример #1
0
function JB_generate_search_sql($form_id, $_SEARCH_INPUT = null)
{
    $SearchFormObj =& getDynamicSearchFormObject($form_id);
    if (is_array($_SEARCH_INPUT)) {
        return $SearchFormObj->generate_search_sql($_SEARCH_INPUT);
    } else {
        return $SearchFormObj->generate_search_sql();
    }
}
Пример #2
0
 function &get_search_object()
 {
     if (is_object($this->searchObj)) {
         return $this->searchObj;
     } else {
         $this->searchObj =& getDynamicSearchFormObject($this->form_id);
         return $this->searchObj;
     }
 }