PHP Класс Neos\FluidAdaptor\ViewHelpers\Format\CaseViewHelper

The default transformation will be uppercase as in mb_convert_case [1]. Possible modes are: lower Transforms the input string to its lowercase representation upper Transforms the input string to its uppercase representation capital Transforms the input string to its first letter upper-cased, i.e. capitalization uncapital Transforms the input string to its first letter lower-cased, i.e. uncapitalization capitalWords Transforms the input string to each containing word being capitalized Note that the behavior will be the same as in the appropriate PHP function mb_convert_case [1]; especially regarding locale and multibyte behavior.
См. также: http://php.net/manual/function.mb-convert-case.php [1] = Examples = Some Text with miXed case SOME TEXT WITH MIXED CASE someString SomeString {article.title -> f:format.case(mode: 'capitalWords')} Dolphins Vanish After A Surprisingly Sophisticated Attempt To Do A Double Backward Somersault
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$escapeChildren boolean

Открытые методы

Метод Описание
render ( string $value = null, string $mode = self::CASE_UPPER ) : string Changes the case of the input string

Описание методов

render() публичный Метод

Changes the case of the input string
public render ( string $value = null, string $mode = self::CASE_UPPER ) : string
$value string The input value. If not given, the evaluated child nodes will be used
$mode string The case to apply, must be one of this' CASE_* constants. Defaults to uppercase application
Результат string the altered string.

Описание свойств

$escapeChildren защищенное свойство

protected bool $escapeChildren
Результат boolean