Esempio n. 1
0
 /**
  * Updates existing rows.
  *
  * @param  array        $data  Column-value pairs.
  * @param  array|string $where An SQL WHERE clause, or an array of SQL WHERE clauses.
  * @return int          The number of rows updated.
  */
 public function update(array $data, $where)
 {
     $tableSpec = ($this->_schema ? $this->_schema . '.' : '') . $this->_name;
     return $this->_db->update($tableSpec, $data, $where);
 }