Esempio n. 1
0
 /**
  * Updates table rows with specified data based on a WHERE clause.
  *
  * @param  mixed        $table The table to update.
  * @param  array        $bind  Column-value pairs.
  * @param  mixed        $where UPDATE WHERE clause(s).
  * @return int          The number of affected rows.
  */
 public function update($table = null, array $bind = null, $where = '')
 {
     if (is_null($table) && is_null($bind) && !strlen($where)) {
         return new Harmoni_Db_Update($this);
     } else {
         return parent::update($table, $bind, $where);
     }
 }