Пример #1
0
    /**
     * 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
    /**
     * 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
    /**
     * Builds a new statement, setting the $class.
     *
     * @param string $class
     */
    public function __construct($class)
    {
        parent::__construct();

        $this->setToken('Class', $class);
    }
Пример #4
0
    /**
     * Creates a new object, setting the $rid to lookup.
     *
     * @param string $rid
     */
    public function __construct($rid)
    {
        parent::__construct();

        $this->setRid($rid);
    }
Пример #5
0
 public function __construct($rid)
 {
     parent::__construct();
     
     $this->setToken('Rid', $rid);
 }
Пример #6
0
    /**
     * 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
    /**
     * Creates a new statement, setting the $permission.
     *
     * @param string $permission
     */
    public function __construct($permission)
    {
        parent::__construct();

        $this->permission($permission);
    }
Пример #8
0
 public function __construct($name)
 {
     parent::__construct();
     
     $this->setToken('Name', $name);
 }