Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.14.2

26 Apr 06:26

Choose a tag to compare

  • + Added a global statement at the beginning to make sure that $modx is available. Without the statement an error occurs while autoloading via Composer.

Version 0.14.1

26 Apr 06:24

Choose a tag to compare

  • * The following methods need their $publication and $deleted parameters to be set as 'all' to return the required documents regardless of their publication and / or removal status(es). The previous value (false) is still supported but causes a warning in the log and will be dropped sometime:
    • * \ddTools::getDocuments.
    • * \ddTools::getDocument.
    • * \ddTools::getTemplateVars.
    • * \ddTools::getTemplateVarOutput.
    • * \ddTools::getDocumentChildren.
    • * \ddTools::getDocumentChildrenTVarOutput.
  • * \ddTools::getTemplateVars: Updated to 1.3. The method now returns the template variables of a document whether the document is deleted or not.

Version 0.14

26 Apr 06:23

Choose a tag to compare

  • * The structure of the repository has been completely changed to meet the Composer requirements.

Version 0.13.3

26 Apr 06:23

Choose a tag to compare

  • * \ddTools::createDocument: The path of a new document now properly depends on the alias / id of its parent.

Version 0.13.2

26 Apr 06:22

Choose a tag to compare

  • * \ddTools::createDocument: The method has been slightly changed. The MODX documentMap and aliasListing config arrays are now being modified properly while the method is called.

Version 0.13.1

26 Apr 06:21

Choose a tag to compare

  • * \ddTools::sendMail: The method was slightly changed to eliminate errors in PHP 5.4−5.6 during headers validation:
    • * All double \r\n and singe \r\n were replaced with single PHP_EOL.
    • * Leading or trailing PHP_EOL's are now trimmed in email content.

Version 0.13

26 Apr 06:20

Choose a tag to compare

  • + \ddTools::sendMail: The new method. It sends emails.

Version 0.12

26 Apr 05:55

Choose a tag to compare

  • + \ddTools::verifyRenamedParams: The new method. It checks an array for deprecated parameters and writes warning messages into the MODX event log. It returns an associative array, in which the correct parameter names are the keys and the parameter values are the values. You can use the exctract function to turn the array into variables of the current symbol table.

Version 0.11.1

26 Apr 05:55

Choose a tag to compare

  • * The following methods have been slightly updated in accordance with MODX 1.0.13:
    • * \ddTools::getDocuments.
    • * \ddTools::getTemplateVars.
    • * \ddTools::getTemplateVarOutput.
    • * \ddTools::getDocumentChildren.
    • * \ddTools::getDocumentChildrenTVarOutput.

Version 0.11

26 Apr 05:54

Choose a tag to compare

  • + \ddTools::ddTools::sort2dArray: The new method. It sorts 2-dimensional array by multiple columns (like in SQL) using Hoare’s method, also referred to as quicksort. The sorting is stable.
  • * Small changes for compatibility with old MODX versions.
  • * Bugfix: The method \ddTools::unfoldArray didn’t used to be static.