public function HumanNameParser_Parser::__construct in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/Parser.php \HumanNameParser_Parser::__construct()
Constructor.
Parameters
mixed $name: Either a name as a string or as a Name object.
File
- includes/
Parser.php, line 33
Class
- HumanNameParser_Parser
- Works with a Name object to parse out the parts of a name.
Code
public function __construct($name = NULL) {
$this->suffixes = array(
'esq',
'esquire',
'jr',
'sr',
'2',
'ii',
'iii',
'iv',
);
$this->prefixes = array(
'bar',
'ben',
'bin',
'da',
'dal',
'de la',
'de la Rue du',
'de',
'del',
'der',
'di',
'ibn',
'la',
'le',
'san',
'st',
'ste',
'van',
'van der',
'van den',
'vel',
'von',
);
$this
->setName($name);
}