function getTDList($rptopID) { $tdRecords = new TDRecords(); $tdRecords->selectRecords($rptopID); if (!($domDoc = $tdRecords->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }
function filterByPropertyType($page = 0, $searchKey, $condition = "") { if ($page > 0) { $page = ($page - 1) * PAGE_BY; $condition .= " LIMIT {$page}," . PAGE_BY; } $fields = array("propertyType" => TD_TABLE . ".propertyType"); $tdRecords = new TDRecords(); if ($tdRecords->searchRecords($searchKey, $fields, $condition)) { if (!($domDoc = $tdRecords->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } } else { return false; } }