ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Class CaseOfLabel. More...
Public Member Functions | |
__construct (string $language_key) | |
transform ($from) | |
![]() | |
applyTo (Result $result) | |
Perform the transformation and reify possible failures. More... | |
__invoke ($from) | |
Transformations should be callable. More... | |
Protected Attributes | |
array | $not_capitalize |
Private Member Functions | |
buildPatterns (array $words) | |
buildPattern (string $word) | |
replaceHelper (array $result) | |
Private Attributes | |
string | $language_key |
Class CaseOfLabel.
Format a text for the title capitalization presentation (Specification at https://docu.ilias.de/goto_docu_pg_1430_42.html)
Throws a LogicException in the transform method, if a not supported language is passed
Definition at line 36 of file CaseOfLabel.php.
ILIAS\Refinery\String\CaseOfLabel::__construct | ( | string | $language_key | ) |
Definition at line 184 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\$language_key.
|
private |
Definition at line 229 of file CaseOfLabel.php.
Referenced by ILIAS\Refinery\String\CaseOfLabel\buildPatterns().
|
private |
Definition at line 220 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\buildPattern().
Referenced by ILIAS\Refinery\String\CaseOfLabel\transform().
|
private |
Definition at line 237 of file CaseOfLabel.php.
ILIAS\Refinery\String\CaseOfLabel::transform | ( | $from | ) |
LogicException |
Implements ILIAS\Refinery\Transformation.
Definition at line 194 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\buildPatterns().
|
private |
Definition at line 41 of file CaseOfLabel.php.
Referenced by ILIAS\Refinery\String\CaseOfLabel\__construct().
|
protected |
Definition at line 43 of file CaseOfLabel.php.