protected function buildSelect()
    {
        $selects = [];
        foreach ($this->select as $select) {
            $shouldBeQuoted = true;

            // Check our list of nonQuoteStrings to see if we should quote or not.
            foreach ($this->nonQuoteStrings as $nonQuoteString) {
                if (strpos(strtolower($select), $nonQuoteString) !== false) {
                    $shouldBeQuoted = false;
                    break;
                }
            }

            if ($shouldBeQuoted) {
                $selects[] = $this->getQuotedTableName() . '.' . $this->quoteIdentifier($select);
            } else {
                $selects[] = $select;
            }
        }
        return 'SELECT ' . implode(', ', $selects);
    }
protected function buildSelect()
    {
        $selects = [];
        foreach ($this->select as $select) {
            $shouldBeQuoted = true;

            // Check our list of nonQuoteStrings to see if we should quote or not.
            foreach ($this->nonQuoteStrings as $nonQuoteString) {
                if (strpos(strtolower($select), $nonQuoteString) !== false) {
                    $shouldBeQuoted = false;
                    break;
                }
            }

            if ($shouldBeQuoted) {
                $selects[] = $this->getQuotedTableName() . '.' . $this->quoteIdentifier($select);
            } else {
                $selects[] = $select;
            }
        }
        return 'SELECT ' . implode(', ', $selects);
    }
protected function buildSelect ( ) { $ selects = [ ] ; foreach ( $ this -> select as $ select ) { $ shouldBeQuoted = true ; // Check our list of nonQuoteStrings to see if we should quote or not. foreach ( $ this -> nonQuoteStrings as $ nonQuoteString ) { if ( strpos ( strtolower ( $ select ) , $ nonQuoteString ) !== false ) { $ shouldBeQuoted = false ; break ; } } if ( $ shouldBeQuoted ) { $ selects [ ] = $ this -> getQuotedTableName ( ) . '.' . $ this -> quoteIdentifier ( $ select ) ; } else { $ selects [ ] = $ select ; } } return 'SELECT ' . implode ( ', ' , $ selects ) ; }
Build and return the select string.

@return string
Build and return the select string .