Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.36

18 May 11:36
Compare
Choose a tag to compare
  • + \ddTools::prepareDocData, \ddTools::createDocument, \ddTools::updateDocument: Also can take document fields as stdClass, not only as an associative array.

Version 0.35.1

08 May 10:48
Compare
Choose a tag to compare
  • * Composer.json:
    • + authors.
    • name: Changed from dd/modxevo-library-ddtools to dd/evolutioncms-libraries-ddtools.
    • * homepage: Link changed to HTTPS.

Version 0.35

06 May 19:48
Compare
Choose a tag to compare
  • + \DDTools\BaseClass::toArray. Returns all properties of this object as an associative array independent of their visibility.
  • + \DDTools\BaseClass::toJSON. Returns all properties of this object as an JSON string independent of their visibility.
  • + \DDTools\BaseClass::__toString(). The same as \DDTools\BaseClass::toJSON().
  • + README → Parameters description:
    • + \DDTools\BaseClass.
    • + Small improvements.

Version 0.34

30 Apr 03:43
Compare
Choose a tag to compare
  • + \DDTools\ObjectTools::extend:
    • + Added the ability to prevent fields overwriting with empty values ($params->overwriteWithEmpty).
    • + Objects can extend arrays and vice versa.
    • + Types of nested objects are independent on types of their parents.
  • + \DDTools\ObjectTools::isPropExists. Checks if the object, class or array has a property / element (see README).
  • + \DDTools\ObjectTools::getPropValue. Get the value of an object property or an array element (see README).
  • + \DDTools\ObjectTools::isObjectOrArray. Finds whether a variable is an array or an object. The method is private for now, because we will need to think more about the parameters.

Version 0.33.1

29 Apr 07:55
Compare
Choose a tag to compare
  • \DDTools\ObjectTools::extend: Fixed array deep extending error if an original array item is not exist.

Version 0.33

28 Apr 11:58
Compare
Choose a tag to compare
  • + \DDTools\ObjectTools::extend: Arrays can also be extended.
  • * CHANGELOG: Fixed misprints.

Version 0.32

26 Apr 06:46
Compare
Choose a tag to compare
  • * \ddTools::verifyRenamedParams:
    • * Pass-by-name style is used (with backward compatibility).
    • + Added an ability to prevent writing to the CMS event log (see $params->writeToLog).
    • + Added an ability to return all parameters, not only corrected (see $params->returnCorrectedOnly).
    • + $params->params can be set as stdClass too.
    • + Improved message style in the CMS log event.
    • * Small refactoring.
  • + README → Documentation:
    • + Parameters description → \ddTools::verifyRenamedParams($params).
    • + Examples → Verify renamed snippet params (\ddTools::verifyRenamedParams($params)).

Version 0.31

26 Apr 05:44
Compare
Choose a tag to compare
  • + \DDTools\ObjectTools::extend. Merge the contents of two or more objects together into the first object (see README.md).
  • * README: Style improvements.

Version 0.30

26 Apr 05:45
Compare
Choose a tag to compare
  • * Attention! (MODX)EvolutionCMS >= 1.1 is required.
  • + \ddTools::getDocumentParentIds. Gets the parent ID(s) of the required level.
  • + \ddTools::clearCache. Clears cache of required document(s) and their parents.
  • + \ddTools::updateDocument: Cache of the updated docs and their parents will be cleared.

Version 0.29.1

26 Apr 05:47
Compare
Choose a tag to compare
  • * \DDTools\BaseClass::setProp: Do nothing if property is not exist.