- + Parameters →
getPropValue->notFoundResult
: The new optional parameter. Allows you to customize what will be returned when the required property is not found. - * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.62 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.57 is required.
- + Parameters →
getPropValue
: You can now get the value of an object property or an array element in any nesting level. Just use.
to get nested properties (see\DDTools\ObjectTools::getPropValue
for more info). - * Parameters →
outputter
→ Valid values:- + The snippet can also return object as a native PHP object or array (it is convenient to call through
\DDTools\Snippet
). The following new values:- *
'objectAuto'
. - *
'objectStdClass'
. - *
'objectArray'
.
- *
- * The foillowing have been changed (with backward compatibility):
- *
'jsonAuto'
→'stringJsonAuto'
. - *
'jsonObject'
→'stringJsonObject'
. - *
'jsonArray'
→'stringJsonArray'
. - *
'queryFormated'
→'stringQueryFormatted'
.
- *
- + The snippet can also return object as a native PHP object or array (it is convenient to call through
- + Parameters →
extend->objects
: Can also be set as JSON, HJSON or Query string.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.51 is required.
- + Parameters →
outputter
: The new parameter. Allows to forcibly convert the snippet result into a JSON object/array or URL-encoded query string if needed.
- * Attention! PHP >= 5.6 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.49.1 is required.
- + Parameters →
sourceObject
,extend
: Can also be set as HJSON. - + You can just call
\DDTools\Snippet::runSnippet
to run the snippet without DB and eval (see README → Examples). - +
\ddObjectTools\Snippet
: The new class. All snippet code was moved here. - + README:
- + Documentation → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
- + Links → Packagist.
- + Text improvements.
- + README_ru.
- + Composer.json →
support
.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.38.1 is required.
- + Parameters →
sourceObject
,extend
: Can also be set asstringQueryFormatted
. - * Refactoring.
- * README:
- - Home page.
- + Links.
- + CHANGELOG_ru.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.34 is required.
- + Parameters →
sourceObject
. - + Parameters →
getPropValue
. The ability to return specified object property / array element. - + Parameters →
extend
:- + Objects can extend arrays and vice versa.
- + Types of nested objects are independent on types of their parents.
- + Parameters →
extend->overwriteWithEmpty
. The ability to prevent overwriting fields with empty values. - + Parameters →
sourceObject
,extend
: Can be set as native PHP objects or arrays, not only JSON strings (e. g. for$modx->runSnippet
). - * If parameters are not set or invalid, the empty object will be returned
'{}'
. - * Composer.json:
- +
homepage
. - +
authors
. - +
keywords
:- +
extend json
. - +
extend objects
. - +
extend arrays
.
- +
- *
require
→dd/evolutioncms-libraries-ddtools
:- * Renamed from
dd/modxevo-library-ddtools
. - * Version format updated.
- * Renamed from
- +
- + The first release.