Example #1
0
 public function getListTable()
 {
     $pRs = $this->query(sgbd_syntax_mysql::getListTable());
     if (empty($pRs)) {
         return null;
     }
     $tObj = array();
     while ($tRow = $pRs->fetch(PDO::FETCH_NUM)) {
         $tObj[] = $tRow[0];
     }
     return $tObj;
 }
Example #2
0
 public function getLastInsertId()
 {
     $pRs = $this->query(sgbd_syntax_mysql::getLastInsertId());
     if (empty($pRs)) {
         return null;
     }
     $tRow = $pRs->fetch(PDO::FETCH_NUM);
     return (int) $tRow[0];
 }