Skip to content

Releases: DivanDesign/EvolutionCMS.libraries.ddTools

Version 0.19

26 Apr 06:36
Compare
Choose a tag to compare
  • * \ddTools::sendMail: Fixed displaying of the file in the mail agent.
  • * \ddTools::escapeForJS: Added backslach escaping. Many thanks to @Aharito.
  • * The library now works correctly without Composer.

Version 0.18

26 Apr 06:36
Compare
Choose a tag to compare
  • + \ddTools::logEvent: The new method. Adds an alert message to the MODX event log with additional debug info (backtrace, snippet name, document id, etc).
  • + \ddTools::encodedStringToArray: The new method. Converts encoded strings to arrays. Supported formats: JSON and Query string.

Version 0.17

26 Apr 06:33
Compare
Choose a tag to compare
  • + \ddTools::parseText: Added support of nested arrays in $params->data.

Version 0.16.2

26 Apr 06:33
Compare
Choose a tag to compare
  • * \ddTools::generateRandomString: The $chars parameter setting was fixed.

Version 0.16.1

26 Apr 06:33
Compare
Choose a tag to compare
  • * \ddTools::screening: Was renamed as \ddTools::escapeForJS (with backward compatibility).
  • * \ddTools::orderedParamsToNamed: Now is public. But be advised that this is beta-version!

Version 0.16

26 Apr 06:32
Compare
Choose a tag to compare
  • * Attention! PHP >= 5.4 is required.
  • * \ddTools::parseText: Updated to 1.3.1:
    • * Refactoring, the method now using named parameters (with backward compatibility).
    • + Added an ability to remove empty placeholders (see $params['removeEmptyPlaceholders']).
    • * The $params['data'] parameter is no longer required.
  • * \ddTools::sendMail: Updated to 2.1:
    • * Refactoring, the method now using named parameters (with backward compatibility).
    • * Default value of the $params['from'] parameter is getting now from $modx->getConfig ('emailsender'). Thank you, MrSwed!.
  • + \ddTools::regEmptyClientScript: Updated to 1.1:
    • + Parameters can be passed as stdClass object.
  • * Refactoring: Short array syntax is used because it’s more convenient.

Version 0.15.4

26 Apr 06:31
Compare
Choose a tag to compare
  • * \ddTools::verifyRenamedParams: Updated to 1.1.1:
    • + An ability to use multiple old names was added (see the $compliance parameter).
    • * Minor refactoring, code style and description changes.

Version 0.15.3

26 Apr 06:30
Compare
Choose a tag to compare
  • * \ddTools::sendMail: The content and headers of an email are now passed to the mail function separately. This fixes empty email contents in some email clients.

Version 0.15.2

26 Apr 06:29
Compare
Choose a tag to compare
  • * \ddTools::updateDocument: The method now uses mysqli_info if $modx->db->conn is an instance of the mysqli class or mysql_info otherwise.

Version 0.15.1

26 Apr 06:29
Compare
Choose a tag to compare
  • * The $modx->getVersionData method existence check was moved under the isset $modx condition.
  • * \ddTools::getTemplateVarOutput: The check for existence of $row['id'] was changed to an isset check.