コード例 #1
0
ファイル: Select.php プロジェクト: Reinmar/Orient
    /**
     * Builds a Select object injecting the $target into the FROM clause.
     *
     * @param array $target
     */
    public function __construct(array $target = null)
    {
        parent::__construct();

        if ($target) {
            $this->setTokenValues('Target', $target);
        }
    }
コード例 #2
0
ファイル: Link.php プロジェクト: Reinmar/Orient
    /**
     * Sets the source of the link, its $alias and if the link must be $reverse.
     *
     * @param string  $class
     * @param string  $property
     * @param string  $alias
     * @param boolean $inverse
     */
    public function __construct($class, $property, $alias, $inverse = false)
    {
        parent::__construct();

        $this->setToken('SourceClass', $class);
        $this->setToken('SourceProperty', $property);
        $this->setToken('Name', $alias);

        if ($inverse) {
            $this->setToken('Inverse', 'INVERSE');
        }
    }
コード例 #3
0
ファイル: Update.php プロジェクト: Reinmar/Orient
    /**
     * Builds a new statement, setting the $class.
     *
     * @param string $class
     */
    public function __construct($class)
    {
        parent::__construct();

        $this->setToken('Class', $class);
    }
コード例 #4
0
ファイル: Find.php プロジェクト: Reinmar/Orient
    /**
     * Creates a new object, setting the $rid to lookup.
     *
     * @param string $rid
     */
    public function __construct($rid)
    {
        parent::__construct();

        $this->setRid($rid);
    }
コード例 #5
0
ファイル: Record.php プロジェクト: Reinmar/Orient
 public function __construct($rid)
 {
     parent::__construct();
     
     $this->setToken('Rid', $rid);
 }
コード例 #6
0
ファイル: Delete.php プロジェクト: Reinmar/Orient
    /**
     * Builds a new statement, setting the class in which the records are gonna
     * be deleted.
     *
     * @param string $from
     */
    public function __construct($from)
    {
        parent::__construct();

        $this->setClass($from);
    }
コード例 #7
0
ファイル: Credential.php プロジェクト: Reinmar/Orient
    /**
     * Creates a new statement, setting the $permission.
     *
     * @param string $permission
     */
    public function __construct($permission)
    {
        parent::__construct();

        $this->permission($permission);
    }
コード例 #8
0
ファイル: Truncate.php プロジェクト: Reinmar/Orient
 public function __construct($name)
 {
     parent::__construct();
     
     $this->setToken('Name', $name);
 }