library/database/class.sqldriver.php
public function Put($Table = '', $Set = NULL, $Where = FALSE, $Limit = FALSE) {
      $this->Update($Table, $Set, $Where, $Limit);

      if (count($this->_Sets) == 0 || !isset($this->_Froms[0])) {
         $this->Reset();
         return FALSE;
      }

      $Sql = $this->GetUpdate($this->_Froms, $this->_Sets, $this->_Wheres, $this->_OrderBys, $this->_Limit);
      $Result = $this->Query($Sql, 'update');

      return $Result;
   }
public function Put($Table = '', $Set = NULL, $Where = FALSE, $Limit = FALSE) {
      $this->Update($Table, $Set, $Where, $Limit);

      if (count($this->_Sets) == 0 || !isset($this->_Froms[0])) {
         $this->Reset();
         return FALSE;
      }

      $Sql = $this->GetUpdate($this->_Froms, $this->_Sets, $this->_Wheres, $this->_OrderBys, $this->_Limit);
      $Result = $this->Query($Sql, 'update');

      return $Result;
   }
public function Put ( $ Table = '' , $ Set = NULL , $ Where = FALSE , $ Limit = FALSE ) { $ this -> Update ( $ Table , $ Set , $ Where , $ Limit ) ; if ( count ( $ this -> _Sets ) == 0 || ! isset ( $ this -> _Froms [ 0 ] ) ) { $ this -> Reset ( ) ; return FALSE ; } $ Sql = $ this -> GetUpdate ( $ this -> _Froms , $ this -> _Sets , $ this -> _Wheres , $ this -> _OrderBys , $ this -> _Limit ) ; $ Result = $ this -> Query ( $ Sql , 'update' ) ; return $ Result ; }
Builds the update statement and runs the query, returning a result object.

@param string $Table The table to which data should be updated.
@param mixed  $Set An array of $FieldName => $Value pairs, or an object of $DataSet->Field
properties containing one rowset.
@param string $Where Adds to the $this->_Wheres collection using $this->Where();
@param int    $Limit Adds a limit to the query.
Builds the update statement and runs the query returning a result object .