Beispiel #1
0
 private function multirun_verbose($message, $closure, $iterations = 1)
 {
     $results = new result_set();
     for ($i = 0; $i < $iterations; $i++) {
         $results->add($this->do_run($message, $closure));
     }
     return $results;
 }
Beispiel #2
0
 /**
  * Return an array that corresponds to the fetched row transformed into an object by the call of fillObject
  *
  *
  * @param result_set $result is het resultaat dat wordt veranderd met het methode fillObject
  * @return array
  * @throws classException
  */
 protected function parseResult($result, $noassoc = false)
 {
     $output = array();
     try {
         while ($data = $result->FetchRow()) {
             $output[] = $this->fillObject($data, $noassoc);
         }
     } catch (classException $e) {
         throw $e;
     }
     return $output;
 }