Skip to content

Releases: DivanDesign/EvolutionCMS.snippets.ddObjectTools

Version 1.0

13 Jun 15:15
Compare
Choose a tag to compare
  • + 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.

Version 0.7

29 Mar 21:59
Compare
Choose a tag to compare
  • * 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'.

Version 0.6

08 Mar 17:24
Compare
Choose a tag to compare

Version 0.5

08 Nov 19:49
Compare
Choose a tag to compare
  • * 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.

Version 0.4

08 Nov 19:48
Compare
Choose a tag to compare
  • * 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.

Version 0.3

03 Jun 04:30
Compare
Choose a tag to compare
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.38.1 is required.
  • + Parameters → sourceObject, extend: Can also be set as stringQueryFormated.
  • * Refactoring.
  • * README:
    • - Home page.
    • + Links.
  • + CHANGELOG_ru.

Version 0.2

13 May 22:30
Compare
Choose a tag to compare
  • * 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.
    • * requiredd/evolutioncms-libraries-ddtools:
      • * Renamed from dd/modxevo-library-ddtools.
      • * Version format updated.

Version 0.1

13 May 22:30
Compare
Choose a tag to compare
  • + The first release.