Esempio n. 1
0
 public static function getByRoute($fromDDD, $toDDD)
 {
     $conn = new DBConnection();
     $dao = new PriceDao();
     $ret = $dao->getByRoute($fromDDD, $toDDD, $conn);
     $conn->close();
     return $ret;
 }
Esempio n. 2
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/casarover/application/models/PriceDao.php';
$dao = new PriceDao();
$a = $dao->get();
var_dump($a);
echo '<br/>';
$a[0]--;
$a[1]--;
$a[2]--;
$dao->put($a);
var_dump($a);