Exemplo n.º 1
0
 /**
  * Delegate to the Statement::update() method. Worth intentionally keeping
  * this level of indirection incase we want to change the behaviour of each
  * DML query.
  *
  * @param $str_sql
  * @param $arr_params
  * @return int
  */
 public function update($str_sql, $arr_params)
 {
     $obj_stmt = new DB\Statement($this->obj_db, $str_sql);
     $obj_stmt->update($arr_params);
     return $obj_stmt->getAffectedRows();
 }