Property | Type | Description | |
---|---|---|---|
$_assocType | integer | ||
$_filterDegrees | boolean | ||
$_filterTitle | boolean |
Method | Description | |
---|---|---|
__construct ( $assocType, $filterMode = PERSON_STRING_FILTER_SINGLE, $filterTitle = false, $filterDegrees = false ) | Constructor | |
_parsePersonString ( $personString, $title, $degrees ) : MetadataDescription | Converts a string with a single person to an NLM name description. | |
_parsePersonsString ( $personsString, $title, $degrees ) : array | Converts a string with multiple persons to an array of NLM name descriptions. | |
getAssocType ( ) : integer | Get the association type | |
getFilterDegrees ( ) : boolean | Do we parse for degrees? | |
getFilterTitle ( ) : boolean | Do we parse for a title? | |
process ( &$input ) : mixed | Transform a person string to an (array of) NLM name description(s). | |
setFilterDegrees ( $filterDegrees ) | Set whether we parse for degrees | |
setFilterTitle ( $filterTitle ) | Set whether we parse for a title | |
supports ( &$input, &$output ) |
public __construct ( $assocType, $filterMode = PERSON_STRING_FILTER_SINGLE, $filterTitle = false, $filterDegrees = false ) |
public _parsePersonString ( $personString, $title, $degrees ) : MetadataDescription | ||
$personString | string | |
$title | boolean true to parse for title | |
$degrees | boolean true to parse for degrees | |
return | MetadataDescription | an NLM name description or null if the string could not be converted |
public _parsePersonsString ( $personsString, $title, $degrees ) : array | ||
$personsString | string | |
$title | boolean true to parse for title | |
$degrees | boolean true to parse for degrees | |
return | array | an array of NLM name descriptions or null if the string could not be converted plus optionally a single 'et-al' string. |
public getAssocType ( ) : integer | ||
return | integer |
public getFilterDegrees ( ) : boolean | ||
return | boolean |
public getFilterTitle ( ) : boolean | ||
return | boolean |
public setFilterDegrees ( $filterDegrees ) | ||
$filterDegrees | boolean |
public setFilterTitle ( $filterTitle ) | ||
$filterTitle | boolean |