Gdn_SQLDriver::update PHP Метод

update() публичный Метод

Returns this object for chaining purposes. ie. $db->Update()->Join()->Set()->Where();
public update ( string $Table, mixed $Set = null, string $Where = false, integer $Limit = false ) : Gdn_SQLDriver
$Table string The table to which data should be updated.
$Set mixed An array of $FieldName => $Value pairs, or an object of $DataSet->Field properties containing one rowset.
$Where string Adds to the $this->_Wheres collection using $this->Where();
$Limit integer Adds a limit to the query.
Результат Gdn_SQLDriver $this
    public function update($Table, $Set = null, $Where = false, $Limit = false)
    {
        if ($Table != '') {
            $this->from($Table);
        }
        if (!is_null($Set)) {
            $this->set($Set);
        }
        if ($Where !== false) {
            $this->where($Where);
        }
        if ($Limit !== false) {
            $this->limit($Limit);
        }
        return $this;
    }