src/DbSql/AbstractSqlQuerySerialyser.php
protected function setFieldList(array $options) {
        $fields = $this->getDriverEscaper()->getAllFields();
        if (array_key_exists('fields', $options)) {
            $fieldsList = [];
            foreach ($options['fields'] as $field) {
                $fieldsList[] = $this->getDriverEscaper()->reserved($field);
            }
            $fields = implode(' ' . $this->getDriverEscaper()->getFieldsSeparator() . ' ', $fieldsList);
        }
        return $fields;
    }
protected function setFieldList(array $options) {
        $fields = $this->getDriverEscaper()->getAllFields();
        if (array_key_exists('fields', $options)) {
            $fieldsList = [];
            foreach ($options['fields'] as $field) {
                $fieldsList[] = $this->getDriverEscaper()->reserved($field);
            }
            $fields = implode(' ' . $this->getDriverEscaper()->getFieldsSeparator() . ' ', $fieldsList);
        }
        return $fields;
    }
protected function setFieldList ( array $ options ) { $ fields = $ this -> getDriverEscaper ( ) -> getAllFields ( ) ; if ( array_key_exists ( 'fields' , $ options ) ) { $ fieldsList = [ ] ; foreach ( $ options [ 'fields' ] as $ field ) { $ fieldsList [ ] = $ this -> getDriverEscaper ( ) -> reserved ( $ field ) ; } $ fields = implode ( ' ' . $ this -> getDriverEscaper ( ) -> getFieldsSeparator ( ) . ' ' , $ fieldsList ) ; } return $ fields ; }
set up selected field list
@param array $options
@return string
set up selected field list