PHP Class LightnCandy\Encoder

Datei anzeigen Open project: zordius/lightncandy

Public Methods

Method Description
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

Method Details

enc() public static method

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
return string The htmlencoded value of the specified variable

encq() public static method

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
return string The htmlencoded value of the specified variable

raw() public static method

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
return string The raw value of the specified variable