protected function addClause($name, $sql, array $parameters, $joiner, $prefix = '', $postfix = '', $is_inclusive = false)
    {
        $name = strtoupper($name);

        if (!isset($this->clauses[$name])) {
            $this->clauses[$name] = new \Octris\Sqlbuilder\Clauses($joiner, $prefix, $postfix);
        }

        $this->clauses[$name]->addClause($sql, $parameters, $is_inclusive);
    }
protected function addClause($name, $sql, array $parameters, $joiner, $prefix = '', $postfix = '', $is_inclusive = false)
    {
        $name = strtoupper($name);

        if (!isset($this->clauses[$name])) {
            $this->clauses[$name] = new \Octris\Sqlbuilder\Clauses($joiner, $prefix, $postfix);
        }

        $this->clauses[$name]->addClause($sql, $parameters, $is_inclusive);
    }
protected function addClause ( $ name , $ sql , array $ parameters , $ joiner , $ prefix = '' , $ postfix = '' , $ is_inclusive = false ) { $ name = strtoupper ( $ name ) ; if ( ! isset ( $ this -> clauses [ $ name ] ) ) { $ this -> clauses [ $ name ] = new \ Octris \ Sqlbuilder \ Clauses ( $ joiner , $ prefix , $ postfix ) ; } $ this -> clauses [ $ name ] -> addClause ( $ sql , $ parameters , $ is_inclusive ) ; }
Add clause.

@param   string              $name                       Name of clause to add.
@param   string              $sql                        SQL snippet of clause.
@param   array               $parameters                 Parameters for clause.
@param   string              $joiner                     String to use for joining multiple clauses of the same name.
@param   string              $prefix                     Optional prefix string for joined clauses.
@param   string              $postfix                    Optional postfix string for joined clauses.
@param   bool                $is_inclusive               Optional clause mode.
Add clause .