Open Journal Systems  3.3.0
Seboettg\CiteProc\Styles Namespace Reference

Namespaces

 Css
 

Data Structures

class  AffixesTest
 
class  DisplayTest
 

Functions

 addAffixes ($text)
 
 addSurroundingQuotes ($text)
 
 applyTextCase ($text, $lang="en")
 
 format ($text)
 
 getChildsAffixesAndDelimiter ($child)
 
 initAffixesAttributes (SimpleXMLElement $node)
 
 initDisplayAttributes (SimpleXMLElement $node)
 
 initFormattingAttributes (SimpleXMLElement $node)
 
 initQuotesAttributes (SimpleXMLElement $node)
 
 initTextCaseAttributes (SimpleXMLElement $node)
 
 removeConsecutiveChars ($string)
 
 removeConsecutivePunctuation ($punctuationSign, $subject)
 
 renderPrefix ()
 
 renderSuffix ()
 
 wrapDisplayBlock ($text)
 

Variables

trait AffixesTrait
 
trait ConsecutivePunctuationCharacterTrait
 
trait DisplayTrait
 
trait FormattingTrait
 
trait QuotesTrait
 
trait TextCaseTrait
 

Detailed Description

Function Documentation

◆ addAffixes()

Seboettg\CiteProc\Styles\addAffixes (   $text)
protected
Parameters
$text
Returns
string

Definition at line 75 of file AffixesTrait.php.

References Seboettg\CiteProc\CiteProc\getContext().

◆ addSurroundingQuotes()

Seboettg\CiteProc\Styles\addSurroundingQuotes (   $text)
Parameters
string$text
Returns
string

Definition at line 48 of file QuotesTrait.php.

References Seboettg\CiteProc\CiteProc\getContext().

◆ applyTextCase()

Seboettg\CiteProc\Styles\applyTextCase (   $text,
  $lang = "en" 
)

◆ format()

Seboettg\CiteProc\Styles\format (   $text)
protected

Definition at line 81 of file FormattingTrait.php.

◆ getChildsAffixesAndDelimiter()

Seboettg\CiteProc\Styles\getChildsAffixesAndDelimiter (   $child)
protected
Parameters
$child

Definition at line 64 of file ConsecutivePunctuationCharacterTrait.php.

◆ initAffixesAttributes()

Seboettg\CiteProc\Styles\initAffixesAttributes ( SimpleXMLElement  $node)
protected
Parameters
SimpleXMLElement$node

Definition at line 50 of file AffixesTrait.php.

◆ initDisplayAttributes()

Seboettg\CiteProc\Styles\initDisplayAttributes ( SimpleXMLElement  $node)
Parameters
$node

Definition at line 43 of file DisplayTrait.php.

◆ initFormattingAttributes()

Seboettg\CiteProc\Styles\initFormattingAttributes ( SimpleXMLElement  $node)
protected
Parameters
SimpleXMLElement$node

Definition at line 62 of file FormattingTrait.php.

◆ initQuotesAttributes()

Seboettg\CiteProc\Styles\initQuotesAttributes ( SimpleXMLElement  $node)

Definition at line 37 of file QuotesTrait.php.

◆ initTextCaseAttributes()

Seboettg\CiteProc\Styles\initTextCaseAttributes ( SimpleXMLElement  $node)
protected

Definition at line 27 of file TextCaseTrait.php.

◆ removeConsecutiveChars()

Seboettg\CiteProc\Styles\removeConsecutiveChars (   $string)
protected
Parameters
string$string
Returns
string

Definition at line 87 of file ConsecutivePunctuationCharacterTrait.php.

References Seboettg\CiteProc\Styles\removeConsecutivePunctuation().

◆ removeConsecutivePunctuation()

Seboettg\CiteProc\Styles\removeConsecutivePunctuation (   $punctuationSign,
  $subject 
)
Parameters
$punctuationSign
$subject
Returns
string

Definition at line 49 of file ConsecutivePunctuationCharacterTrait.php.

Referenced by Seboettg\CiteProc\Styles\removeConsecutiveChars().

◆ renderPrefix()

Seboettg\CiteProc\Styles\renderPrefix ( )
Returns
string

Definition at line 108 of file AffixesTrait.php.

◆ renderSuffix()

Seboettg\CiteProc\Styles\renderSuffix ( )
Returns
string

Definition at line 116 of file AffixesTrait.php.

◆ wrapDisplayBlock()

Seboettg\CiteProc\Styles\wrapDisplayBlock (   $text)
Parameters
$text
Returns
string

Definition at line 58 of file DisplayTrait.php.

Variable Documentation

◆ AffixesTrait

trait Seboettg::CiteProc::Styles\AffixesTrait
Initial value:
{
private $prefix = ""

Definition at line 21 of file AffixesTrait.php.

◆ ConsecutivePunctuationCharacterTrait

trait Seboettg::CiteProc::Styles\ConsecutivePunctuationCharacterTrait
Initial value:
{
private $childrenPrefixes = []

Definition at line 18 of file ConsecutivePunctuationCharacterTrait.php.

◆ DisplayTrait

trait Seboettg::CiteProc::Styles\DisplayTrait
Initial value:
{
private static $allowedValues = [
"block",
"left-margin",
"right-inline",
"indent"
]

Definition at line 20 of file DisplayTrait.php.

◆ FormattingTrait

trait Seboettg::CiteProc::Styles\FormattingTrait
Initial value:
{
private static $formattingAttributes = [
'font-style',
'font-family',
'font-weight',
'font-variant',
'text-decoration',
'vertical-align'
]

Definition at line 21 of file FormattingTrait.php.

◆ QuotesTrait

trait Seboettg::CiteProc::Styles\QuotesTrait
Initial value:
{
private $quotes = false

Definition at line 27 of file QuotesTrait.php.

◆ TextCaseTrait

trait Seboettg::CiteProc::Styles\TextCaseTrait
Initial value:
{
private $textCase

Definition at line 23 of file TextCaseTrait.php.