예제 #1
0
 /**
  * Creates the value objects for this Record. It is 1 based
  * 
  * @return void
  */
 private function createValues(ResultSet $rs)
 {
     $this->values = $rs->getRow();
 }
예제 #2
0
 /**
  * Merge ResultSet into RowsAggregate
  *
  * @return RowsAggregate
  */
 protected static function fetch_all(ResultSet $rs, ReflectionClass $class)
 {
     $results = new RowsAggregate();
     while ($rs->next()) {
         $results->add($class->newInstance($rs->getRow()));
     }
     $rs->close();
     return $results;
 }