Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.19
- *
\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
- +
\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
- +
\ddTools::parseText
: Added support of nested arrays in$params->data
.
Version 0.16.2
- *
\ddTools::generateRandomString
: The$chars
parameter setting was fixed.
Version 0.16.1
- *
\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
- * 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
- *
\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.
- + An ability to use multiple old names was added (see the
Version 0.15.3
- *
\ddTools::sendMail
: The content and headers of an email are now passed to themail
function separately. This fixes empty email contents in some email clients.
Version 0.15.2
- *
\ddTools::updateDocument
: The method now usesmysqli_info
if$modx->db->conn
is an instance of themysqli
class ormysql_info
otherwise.
Version 0.15.1
- * 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.