PHP 클래스 JsonFormatHelper, Platform-API-plugin

상속: extends AppHelper
파일 보기 프로젝트 열기: nodesagency/Platform-API-plugin

보호된 프로퍼티들

프로퍼티 타입 설명
$_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

메소드 상세

__construct() 공개 메소드

Allow overriding of settings
public __construct ( View $View, array $settings = [] )
$View View The View this helper is being attached to.
$settings array Configuration settings for the helper.

format() 공개 메소드

Indents a flat JSON string to make it more human-readable.
public format ( string $json ) : string
$json string The original JSON string to process.
리턴 string Indented version of the original JSON string.

formatArray() 공개 메소드

Will only work with php 5.4. Mostly just a reminder
public formatArray ( mixed $json ) : string
$json mixed
리턴 string Indented version of the original JSON string.

프로퍼티 상세

$_settings 보호되어 있는 프로퍼티

_settings
protected array $_settings
리턴 array