Open Journal Systems  3.3.0
Seboettg\CiteProc\Util\NameHelper Class Reference

Static Public Member Functions

static addExtendedMarkup ($nameVar, $nameItem, $formattedName)
 
static appendParticleTo (&$data, $namePart, $particle)
 
static identicalAuthors ($precedingItem, $currentAuthor)
 
static normalizeName ($data)
 
static precedingHasAuthor ($preceding, $name)
 
static prependParticleTo (&$data, $namePart, $particle)
 
static sameNames ($persons1, $persons2)
 

Detailed Description

Definition at line 21 of file NameHelper.php.

Member Function Documentation

◆ addExtendedMarkup()

static Seboettg\CiteProc\Util\NameHelper::addExtendedMarkup (   $nameVar,
  $nameItem,
  $formattedName 
)
static

Definition at line 127 of file NameHelper.php.

Referenced by Seboettg\CiteProc\Rendering\Name\Names\render().

◆ appendParticleTo()

static Seboettg\CiteProc\Util\NameHelper::appendParticleTo ( $data,
  $namePart,
  $particle 
)
static

removes the field $particle from $data and appends its content to the $namePart field of $data

Parameters
stdClass$data
string$namePart
string$particle

Definition at line 70 of file NameHelper.php.

◆ identicalAuthors()

static Seboettg\CiteProc\Util\NameHelper::identicalAuthors (   $precedingItem,
  $currentAuthor 
)
static
Parameters
stdClass$precedingItem
array$currentAuthor
Returns
bool
Exceptions
CiteProcException

Definition at line 30 of file NameHelper.php.

◆ normalizeName()

static Seboettg\CiteProc\Util\NameHelper::normalizeName (   $data)
static
Parameters
$data
Returns
string
Exceptions
CiteProcException

Definition at line 119 of file NameHelper.php.

◆ precedingHasAuthor()

static Seboettg\CiteProc\Util\NameHelper::precedingHasAuthor (   $preceding,
  $name 
)
static
Parameters
stdClass$preceding
stdClass$name
Returns
bool

Definition at line 53 of file NameHelper.php.

◆ prependParticleTo()

static Seboettg\CiteProc\Util\NameHelper::prependParticleTo ( $data,
  $namePart,
  $particle 
)
static

removes the field $particle from $data and prepends its content to the $namePart field of $data

Parameters
stdClass$data
string$namePart("given"|"family")
string$particle

Definition at line 84 of file NameHelper.php.

◆ sameNames()

static Seboettg\CiteProc\Util\NameHelper::sameNames (   $persons1,
  $persons2 
)
static
Parameters
array$persons1
array$persons2
Returns
bool

Definition at line 97 of file NameHelper.php.

Referenced by Seboettg\CiteProc\Rendering\Name\Names\render().


The documentation for this class was generated from the following file: