Beispiel #1
0
 function select($table, $criteria = null, $order = array())
 {
     $query = new lmbSelectQuery($table, $this->conn);
     if ($criteria) {
         $query->addCriteria(lmbSQLCriteria::objectify($criteria));
     }
     $rs = $query->getRecordSet();
     if (is_array($order) && sizeof($order)) {
         $rs->sort($order);
     }
     return $rs;
 }
 function findIndexRecordByUri($uri)
 {
     $query = new lmbSelectQuery(FULL_TEXT_SEARCH_INDEXER_TABLE, $this->conn);
     $query->addCriteria(new lmbSQLFieldCriteria('uri', $uri->toString()));
     $rs = $query->getRecordSet();
     $rs->rewind();
     if ($rs->valid()) {
         return $rs->current();
     }
 }