protected function buildClause(
        /*# string */ $clauseName,
        /*# string */ $clausePrefix,
        array $settings,
        array $clauseParts = []
    )/*# string */ {
        $clause = &$this->getClause($clauseName);
        foreach ($clause as $alias => $field) {
            $part =
                $this->quoteItem($field[0], $settings, $field[1]) .
                $this->quoteAlias($alias, $settings) .
                (isset($field[2]) ? (' ' . $field[2]) : '');
            $clauseParts[] = $part;
        }
        return $this->joinClause($clausePrefix, ',', $clauseParts, $settings);
    }
protected function buildClause(
        /*# string */ $clauseName,
        /*# string */ $clausePrefix,
        array $settings,
        array $clauseParts = []
    )/*# string */ {
        $clause = &$this->getClause($clauseName);
        foreach ($clause as $alias => $field) {
            $part =
                $this->quoteItem($field[0], $settings, $field[1]) .
                $this->quoteAlias($alias, $settings) .
                (isset($field[2]) ? (' ' . $field[2]) : '');
            $clauseParts[] = $part;
        }
        return $this->joinClause($clausePrefix, ',', $clauseParts, $settings);
    }
protected function buildClause ( /*# string */ $ clauseName , /*# string */ $ clausePrefix , array $ settings , array $ clauseParts = [ ] ) /*# string */ { $ clause = & $ this -> getClause ( $ clauseName ) ; foreach ( $ clause as $ alias => $ field ) { $ part = $ this -> quoteItem ( $ field [ 0 ] , $ settings , $ field [ 1 ] ) . $ this -> quoteAlias ( $ alias , $ settings ) . ( isset ( $ field [ 2 ] ) ? ( ' ' . $ field [ 2 ] ) : '' ) ; $ clauseParts [ ] = $ part ; } return $ this -> joinClause ( $ clausePrefix , ',' , $ clauseParts , $ settings ) ; }
Build a generic clause

@param  string $clauseName
@param  string $clausePrefix
@param  array $settings
@param  array $clauseParts
@return string
@access protected
Build a generic clause