Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.15

26 Apr 06:28
Compare
Choose a tag to compare
  • + \ddTools::copyDir: The new method. It allows copying a folder with all its contents recursively.
  • * \ddTools::updateDocument: The method now uses mysqli_info instead of mysql_info.
  • * \ddTools::getDocuments: user access options are now completely ignored while retrieving. It’s done because the method is supposed to be a low level implementation, so it’s implied that a structure of a higher level will be dealing with user access.
  • * The library now depends on dd/composer-plugin-modxevo-library-ddtools-installer v1.0.5
  • + A new helper class called \ddTools\Response was added. It’s recommended to be used as a skeleton for the response to a client request or as the result of a snippet supporting AJAX output.

Version 0.14.3

26 Apr 06:27
Compare
Choose a tag to compare
  • + An isset check for the global $modx variable has been added to prevent an error when calling the $modx->getFullTableName method.

Version 0.14.2

26 Apr 06:26
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • + \ddTools::sendMail: The new method. It sends emails.

Version 0.12

26 Apr 05:55
Compare
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.