Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.36
- +
\ddTools::prepareDocData
,\ddTools::createDocument
,\ddTools::updateDocument
: Also can take document fields as stdClass, not only as an associative array.
Version 0.35.1
- * Composer.json:
- +
authors
. - *
name
: Changed fromdd/modxevo-library-ddtools
todd/evolutioncms-libraries-ddtools
. - *
homepage
: Link changed to HTTPS.
- +
Version 0.35
- +
\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
- +
\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.
- + Added the ability to prevent fields overwriting with empty values (
- +
\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
\DDTools\ObjectTools::extend
: Fixed array deep extending error if an original array item is not exist.
Version 0.33
- +
\DDTools\ObjectTools::extend
: Arrays can also be extended. - * CHANGELOG: Fixed misprints.
Version 0.32
- *
\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 asstdClass
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)
).
- + Parameters description →
Version 0.31
- +
\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
- * 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
- *
\DDTools\BaseClass::setProp
: Do nothing if property is not exist.