PHP 클래스 LightnCandy\Encoder

파일 보기 프로젝트 열기: zordius/lightncandy

공개 메소드들

메소드 설명
enc ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $var ) : string Get html encoded string
encq ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $var ) : string LightnCandy runtime method for {{var}} , and deal with single quote to same as handlebars.js .
raw ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $v ) : string Get string value

메소드 상세

enc() 공개 정적인 메소드

Get html encoded string
public static enc ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $var ) : string
$cx array\arraystring | integer>
$var arraystring | integer> | integer | null
리턴 string The htmlencoded value of the specified variable

encq() 공개 정적인 메소드

LightnCandy runtime method for {{var}} , and deal with single quote to same as handlebars.js .
public static encq ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $var ) : string
$cx array\arraystring | integer>
$var arraystring | integer> | integer | null
리턴 string The htmlencoded value of the specified variable

raw() 공개 정적인 메소드

Get string value
public static raw ( array\arraystring | integer> $cx, arraystring | integer> | integer | null $v ) : string
$cx array\arraystring | integer>
$v arraystring | integer> | integer | null
리턴 string The raw value of the specified variable