Beispiel #1
0
 function getSearchCount($searchKey, $condition)
 {
     $fields = array(COMPANY_TABLE . ".companyName", PERSON_TABLE . ".lastName", PERSON_TABLE . ".middleName", PERSON_TABLE . ".firstName", LOCATIONADDRESS_TABLE . ".number", LOCATIONADDRESS_TABLE . ".street", BARANGAY_TABLE . ".description", DISTRICT_TABLE . ".description", MUNICIPALITYCITY_TABLE . ".description", PROVINCE_TABLE . ".description");
     $odRecords = new odRecords();
     return $odRecords->countSearchRecords($searchKey, $fields, $condition);
 }
Beispiel #2
0
 function getSearchCount($searchKey)
 {
     $fields = array(COMPANY_TABLE . ".companyName", PERSON_TABLE . ".lastName", PERSON_TABLE . ".middleName", PERSON_TABLE . ".firstName", LOCATIONADDRESS_TABLE . ".number", LOCATIONADDRESS_TABLE . ".street", BARANGAY_TABLE . ".code", LOCATIONADDRESS_TABLE . ".district", LOCATIONADDRESS_TABLE . ".municipalityCity", LOCATIONADDRESS_TABLE . ".province");
     $odRecords = new odRecords();
     return $odRecords->countSearchRecords($searchKey, $fields);
 }