dibi::update PHP Method

update() public static method

public static update ( $table, $args ) : Dibi\Fluent
return Dibi\Fluent
    public static function update($table, $args)
    {
        return self::getConnection()->update($table, $args);
    }

Usage Example

示例#1
0
 public function __set($name, $value)
 {
     if (!array_key_exists($name, $this->vars)) {
         dibi::insert("configs", array('name' => $name, 'value' => $value))->execute();
         return $this->vars[$name] = $value;
     } else {
         if ($this->vars[$name] == $value) {
             return $value;
         }
         dibi::update("configs", array('value' => $value))->where('name=%s', $name)->execute();
         return $this->vars[$name] = $value;
     }
 }
All Usage Examples Of dibi::update