Skip to content

Version 2.12

Choose a tag to compare

@Ronef Ronef released this 12 Jul 14:09
· 12 commits to master since this release
  • * 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:
    • + support.
    • + autoload.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.