Beispiel #1
0
 function getPersonList($page = 0, $orderby = "", $orderbyType = "ASC")
 {
     if ($page > 0) {
         $page = ($page - 1) * PAGE_BY;
         $condition = "LIMIT {$page}," . PAGE_BY;
     }
     if ($orderby != "") {
         $condition = "ORDER BY " . $orderby . " " . $orderbyType . " " . $condition;
     }
     $personRecords = new PersonRecords();
     if ($personRecords->selectRecords($condition)) {
         if (!($domDoc = $personRecords->getDomDocument())) {
             return false;
         } else {
             $xmlStr = $domDoc->dump_mem(true);
             return $xmlStr;
         }
     } else {
         return false;
     }
 }