ILIAS
release_8 Revision v8.19
|
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 37 of file CaseOfLabel.php.
ILIAS\Refinery\String\CaseOfLabel::__construct | ( | string | $language_key | ) |
Definition at line 185 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\$language_key.
|
private |
Definition at line 230 of file CaseOfLabel.php.
Referenced by ILIAS\Refinery\String\CaseOfLabel\buildPatterns().
|
private |
Definition at line 221 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\buildPattern().
Referenced by ILIAS\Refinery\String\CaseOfLabel\transform().
|
private |
Definition at line 238 of file CaseOfLabel.php.
ILIAS\Refinery\String\CaseOfLabel::transform | ( | $from | ) |
LogicException |
Implements ILIAS\Refinery\Transformation.
Definition at line 195 of file CaseOfLabel.php.
References ILIAS\Refinery\String\CaseOfLabel\buildPatterns().
|
private |
Definition at line 42 of file CaseOfLabel.php.
Referenced by ILIAS\Refinery\String\CaseOfLabel\__construct().
|
protected |
Definition at line 44 of file CaseOfLabel.php.