PHP 클래스 LightnCandy\SafeString

상속: extends Encoder
파일 보기 프로젝트 열기: zordius/lightncandy 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$jsContext

공개 메소드들

메소드 설명
__construct ( string $str, boolean | string $escape = false ) Constructor
__toString ( )
escapeTemplate ( string $template ) : string Escape template
stripExtendedComments ( string $template ) : string Strip extended comments {{!-- .

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $str, boolean | string $escape = false )
$str string input string
$escape boolean | string false to not escape, true to escape, 'encq' to escape as handlebars.js

__toString() 공개 메소드

public __toString ( )

escapeTemplate() 공개 정적인 메소드

Escape template
public static escapeTemplate ( string $template ) : string
$template string handlebars template string
리턴 string Escaped template

stripExtendedComments() 공개 정적인 메소드

... --}}
public static stripExtendedComments ( string $template ) : string
$template string handlebars template string
리턴 string Stripped template

프로퍼티 상세

$jsContext 공개적으로 정적으로 프로퍼티

public static $jsContext