コード例 #1
0
ファイル: SearchHandler.php プロジェクト: ashton/f1desk
        if (!empty($StMethod) && $BoPrint) {
            try {
                eval('
        print "<pre>";
        print_r(self::' . $StMethod . ');
        print "</pre>";');
            } catch (ErrorException $e) {
                print_r($e);
            }
        }
    }
}
SearchHandler::reset();
SearchHandler::setLogged(3);
SearchHandler::setSupporter(2);
SearchHandler::setWord('Danilo john dimiTRI MArio');
SearchHandler::Search();
/*SearchHandler::debug(NULL, "setSelectCustomField(array('F1', 'F2'))");
SearchHandler::debug(NULL, "setWhereCustomField(array('LastName'=>'Gomes', 'Occupation'=>'Programmer'))");
SearchHandler::debug(NULL, "setUser('cli%')");
SearchHandler::debug(NULL, "setDepartment(8)");
SearchHandler::debug(NULL, "setCategory(8)");
SearchHandler::debug(NULL, "setDtStartEnd('2009-01-01','2009-03-03')");
SearchHandler::debug(NULL, "setTicket(2)");
SearchHandler::debug(NULL, 'setLimit(30,9)');
SearchHandler::debug(NULL, 'setOrderBy(array("Ticket"=>"DtOpened"))');
SearchHandler::debug(NULL, 'setGroupBy(array("Ticket"=>"IDUser", "Ticket"=>"IDSupporter"))');

print '<pre>';
SearchHandler::debug('ArWhere');
SearchHandler::Search();