Releases
v2.12
Compare
Sorry, something went wrong.
No results found
Ronef
released this
12 Jul 14:09
* Parameters → outputter → Valid values → 'object': Has been renamed from 'json' (with backward compatibility).
+ OutputterObject → Parameters:
+ outputterParams->format: The new parameter. Allows:
+ Return result as a native PHP object or array (it is convenient to call through \DDTools\Snippet::runSnippet):
+ 'objectAuto' — stdClass or array depends on result object
+ 'objectStdClass' — stdClass
+ 'objectArray' — array
+ Return result as a string:
+ 'stringJsonAuto' — stringJsonObject or stringJsonArray depends on result object
+ 'stringJsonObject'
+ 'stringJsonArray'
+ 'stringQueryFormatted' — Query string
+ 'stringHtmlAttrs' — HTML attributes string (e. g. width='100' height='50')
* \ddTools::getTpl is used instead of $modx->getTpl (means a bit less bugs).
README:
* Examples: HJSON is used for all examples.
+ Links → GitHub.
+ Composer.json:
* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
You can’t perform that action at this time.