original_string: function bibTex()
      {
          $bibtex = '';
          foreach ($this->data as $entry) {
              //Intro
              $bibtex .= '@' . strtolower($entry['entryType']) . ' { ' . $entry['cite'] . ",\n";
              //Other fields except author
              foreach ($entry as $key => $val) {
                  if ($this->_options['wordWrapWidth'] > 0) {
                      $val = $this->_wordWrap($val);
                  }
                  if (!in_array($key, array('cite', 'entryType', 'author'))) {
                      $bibtex .= "\t" . $key . ' = {' . $this->_escape_tex($val) . "},\n";
                  }
              }
              //Author
              $author = null;
  
              if (array_key_exists('author', $entry)) {
                  if ($this->_options['extractAuthors']) {
                      $tmparray = array(); //In this array the authors are saved and the joind with an and
                      foreach ($entry['author'] as $authorentry) {
                          $tmparray[] = $this->_formatAuthor($authorentry);
                      }
                      $author = join(' and ', $tmparray);
                  } else {
                      $author = $entry['author'];
                  }
  
              } else {
                  $author = '';
              }
              $bibtex .= "\tauthor = {" . $this->_escape_tex($author) . "}\n";
              $bibtex .= "}\n\n";
          }
          return $bibtex;
      }
code: function bibTex()
      {
          $bibtex = '';
          foreach ($this->data as $entry) {
              //Intro
              $bibtex .= '@' . strtolower($entry['entryType']) . ' { ' . $entry['cite'] . ",\n";
              //Other fields except author
              foreach ($entry as $key => $val) {
                  if ($this->_options['wordWrapWidth'] > 0) {
                      $val = $this->_wordWrap($val);
                  }
                  if (!in_array($key, array('cite', 'entryType', 'author'))) {
                      $bibtex .= "\t" . $key . ' = {' . $this->_escape_tex($val) . "},\n";
                  }
              }
              //Author
              $author = null;
  
              if (array_key_exists('author', $entry)) {
                  if ($this->_options['extractAuthors']) {
                      $tmparray = array(); //In this array the authors are saved and the joind with an and
                      foreach ($entry['author'] as $authorentry) {
                          $tmparray[] = $this->_formatAuthor($authorentry);
                      }
                      $author = join(' and ', $tmparray);
                  } else {
                      $author = $entry['author'];
                  }
  
              } else {
                  $author = '';
              }
              $bibtex .= "\tauthor = {" . $this->_escape_tex($author) . "}\n";
              $bibtex .= "}\n\n";
          }
          return $bibtex;
      }
code_tokens: function bibTex ( ) { $ bibtex = '' ; foreach ( $ this -> data as $ entry ) { //Intro $ bibtex .= '@' . strtolower ( $ entry [ 'entryType' ] ) . ' { ' . $ entry [ 'cite' ] . ",\n" ; //Other fields except author foreach ( $ entry as $ key => $ val ) { if ( $ this -> _options [ 'wordWrapWidth' ] > 0 ) { $ val = $ this -> _wordWrap ( $ val ) ; } if ( ! in_array ( $ key , array ( 'cite' , 'entryType' , 'author' ) ) ) { $ bibtex .= "\t" . $ key . ' = {' . $ this -> _escape_tex ( $ val ) . "},\n" ; } } //Author $ author = null ; if ( array_key_exists ( 'author' , $ entry ) ) { if ( $ this -> _options [ 'extractAuthors' ] ) { $ tmparray = array ( ) ; //In this array the authors are saved and the joind with an and foreach ( $ entry [ 'author' ] as $ authorentry ) { $ tmparray [ ] = $ this -> _formatAuthor ( $ authorentry ) ; } $ author = join ( ' and ' , $ tmparray ) ; } else { $ author = $ entry [ 'author' ] ; } } else { $ author = '' ; } $ bibtex .= "\tauthor = {" . $ this -> _escape_tex ( $ author ) . "}\n" ; $ bibtex .= "}\n\n" ; } return $ bibtex ; }
docstring: Converts the stored BibTex entries to a BibTex String
  
  In the field list, the author is the last field.
  
  @access public
  @return string The BibTex string
docstring_tokens: Converts the stored BibTex entries to a BibTex String