function getRPTOPList() { $rptopRecords = new RPTOPRecords(); $rptopRecords->selectRecords(); if (!($domDoc = $rptopRecords->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }
function getRPTOPList($page = "", $condition = "") { if ($page > 0) { $page = ($page - 1) * PAGE_BY; $condition .= " LIMIT {$page}," . PAGE_BY; } $rptopRecords = new RPTOPRecords(); $rptopRecords->selectRecords($condition); if (!($domDoc = $rptopRecords->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }