Doctrine\OrientDB\Query\Command::__construct PHP Method

__construct() public method

Builds a new object, creating the SQL statement from the class SCHEMA and initializing the tokens.
public __construct ( )
    public function __construct()
    {
        $this->tokens = $this->getTokens();
        $this->ridValidator = new RidValidator();
        $this->escapeValidator = new EscapeValidator();
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Builds a new statement, setting the $class.
  *
  * @param string $class
  * @param string $from
  * @param string $to
  */
 public function __construct($class, $from, $to)
 {
     parent::__construct();
     $this->setToken('Class', $class);
     $this->setToken('From', $from);
     $this->setToken('To', $to);
 }
All Usage Examples Of Doctrine\OrientDB\Query\Command::__construct