PHP Класс PersonStringNlm30NameSchemaFilter, pkp-lib

Наследование: extends Nlm30PersonStringFilter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_assocType integer
$_filterDegrees boolean
$_filterTitle boolean

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

Constructor
public __construct ( $assocType, $filterMode = PERSON_STRING_FILTER_SINGLE, $filterTitle = false, $filterDegrees = false )

_parsePersonString() публичный Метод

TODO: add initials from all given names to initials element
public _parsePersonString ( $personString, $title, $degrees ) : MetadataDescription
$personString string
$title boolean true to parse for title
$degrees boolean true to parse for degrees
Результат MetadataDescription an NLM name description or null if the string could not be converted

_parsePersonsString() публичный Метод

Converts a string with multiple persons to an array of NLM name descriptions.
public _parsePersonsString ( $personsString, $title, $degrees ) : array
$personsString string
$title boolean true to parse for title
$degrees boolean true to parse for degrees
Результат array an array of NLM name descriptions or null if the string could not be converted plus optionally a single 'et-al' string.

getAssocType() публичный Метод

Get the association type
public getAssocType ( ) : integer
Результат integer

getFilterDegrees() публичный Метод

Do we parse for degrees?
public getFilterDegrees ( ) : boolean
Результат boolean

getFilterTitle() публичный Метод

Do we parse for a title?
public getFilterTitle ( ) : boolean
Результат boolean

process() публичный Метод

Transform a person string to an (array of) NLM name description(s).
См. также: Filter::process()
public process ( &$input ) : mixed
$input string
Результат mixed Either a MetadataDescription or an array of MetadataDescriptions plus optionally a single 'et-al' string.

setFilterDegrees() публичный Метод

Set whether we parse for degrees
public setFilterDegrees ( $filterDegrees )
$filterDegrees boolean

setFilterTitle() публичный Метод

Set whether we parse for a title
public setFilterTitle ( $filterTitle )
$filterTitle boolean

supports() публичный Метод

public supports ( &$input, &$output )

Описание свойств

$_assocType публичное свойство

public int $_assocType
Результат integer

$_filterDegrees публичное свойство

public bool $_filterDegrees
Результат boolean

$_filterTitle публичное свойство

public bool $_filterTitle
Результат boolean