Open Journal Systems  3.3.0
Seboettg\CiteProc\Locale\Locale Class Reference

Public Member Functions

 __construct ($lang="en-US", $xmlString=null)
 
 addXml (SimpleXMLElement $xml)
 
 filter ($type, $name, $form="long")
 
 getLanguage ()
 

Detailed Description

Definition at line 33 of file Locale.php.

Constructor & Destructor Documentation

◆ __construct()

Seboettg\CiteProc\Locale\Locale::__construct (   $lang = "en-US",
  $xmlString = null 
)

Locale constructor.

Parameters
string$lang
string$xmlString
Exceptions
CiteProcException

Definition at line 59 of file Locale.php.

References Seboettg\CiteProc\Locale\initLocaleXmlParser(), and Seboettg\CiteProc\StyleSheet\loadLocales().

Member Function Documentation

◆ addXml()

Seboettg\CiteProc\Locale\Locale::addXml ( SimpleXMLElement  $xml)
Parameters
SimpleXMLElement$xml
Returns
$this

Definition at line 77 of file Locale.php.

◆ filter()

Seboettg\CiteProc\Locale\Locale::filter (   $type,
  $name,
  $form = "long" 
)
Parameters
string$type
$name
string$form
Returns
stdClass

Definition at line 100 of file Locale.php.

◆ getLanguage()

Seboettg\CiteProc\Locale\Locale::getLanguage ( )
Returns
string

Definition at line 89 of file Locale.php.


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