The node_encode template operator
Registered in extension/ezjscore/autoloads/eztemplateautoload.php by the class ezjscEncodingTemplateFunctions (extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php).
The same class also registers: json_encode, xml_encode.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
node | object | yes | array() |
params | hash | no | array() |
type | string | no | 'json' |
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
$value|node_encode( $node, hash(), 'json' )Related
Generated by ./console exp:help:examples from extension/ezjscore/autoloads/eztemplateautoload.php, extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.