Dibi\Connection::command PHP Method

command() public method

public command ( ) : dibi\Fluent
return dibi\Fluent
    public function command()
    {
        return new Fluent($this);
    }

Usage Example

Example #1
0
 /**
  * Calls setWhere() method of NumberedColumns.
  * @param array Pass num array. For example 1 => 1, 1 => 1, 3 => 4.
  * @param DibiFluent You can skip this, it's prefilled with NULL.
  * @return DibiFluent
  */
 public function setNumberedUpdateValues($values, $from, $to, $DibiFluent = NULL)
 {
     if (is_null($DibiFluent)) {
         $DibiFluent = $this->connection->command()->update("`{$this->name}` AS `{$this->alias}`");
     }
     return $this->numbered[$this->activeNumbered]->setUpdateValues($DibiFluent, $values, $from, $to);
 }