PHP 클래스 PersonStringNlm30NameSchemaFilter, pkp-lib

상속: extends Nlm30PersonStringFilter
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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