コード例 #1
0
 public function execute(HermitStatement $stmt, HermitValueType $type)
 {
     $type->apply($stmt);
     if ($row = $stmt->fetch()) {
         $stmt->closeCursor();
         return $row;
     }
     return null;
 }
コード例 #2
0
 public function execute(HermitStatement $stmt, HermitValueType $type)
 {
     $type->apply($stmt);
     $results = array();
     while ($row = $stmt->fetch()) {
         $results[] = $row;
     }
     return $results;
 }
コード例 #3
0
 public function execute(HermitResultSet $stmt, HermitValueType $type)
 {
     $type->apply($stmt);
     return new HermitIteratorMultiResultSet($stmt);
 }