You are here

function PARSECREATORS::parse in Bibliography Module 6

Same name and namespace in other branches
  1. 5 bibtexParse/PARSECREATORS.php \PARSECREATORS::parse()
  2. 6.2 modules/bibtexParse/PARSECREATORS.php \PARSECREATORS::parse()
  3. 7.3 plugins/biblio_style/bibtex/PARSECREATORS.php \PARSECREATORS::parse()
  4. 7 modules/bibtexParse/PARSECREATORS.php \PARSECREATORS::parse()
  5. 7.2 modules/bibtexParse/PARSECREATORS.php \PARSECREATORS::parse()

File

bibtexParse/PARSECREATORS.php, line 184

Class

PARSECREATORS

Code

function parse($input, $type = 'author') {
  $input = trim($input);

  // split on ' and '
  $authorArray = preg_split("/\\s(and|&)\\s/i", $input);
  return $this
    ->parseArray($authorArray, $type);
}