PHP Class LightnCandy\Encoder

Afficher le fichier Open project: zordius/lightncandy

Méthodes publiques

Méthode 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 méthode

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

encq() public static méthode

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

raw() public static méthode

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