original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Build a generic clause
  
  @param  string $clauseName
  @param  string $clausePrefix
  @param  array $settings
  @param  array $clauseParts
  @return string
  @access protected
docstring_tokens: Build a generic clause