Свойство | Тип | Описание | |
---|---|---|---|
$_settings | array | _settings |
Метод | Описание | |
---|---|---|
__construct ( View $View, array $settings = [] ) | Allow overriding of settings | |
format ( string $json ) : string | Indents a flat JSON string to make it more human-readable. | |
formatArray ( mixed $json ) : string | formatArray |
public __construct ( View $View, array $settings = [] ) | ||
$View | View | The View this helper is being attached to. |
$settings | array | Configuration settings for the helper. |
public formatArray ( mixed $json ) : string | ||
$json | mixed | |
Результат | string | Indented version of the original JSON string. |