Releases: DivanDesign/EvolutionCMS.libraries.ddTools
Releases · DivanDesign/EvolutionCMS.libraries.ddTools
Version 0.15
- +
\ddTools::copyDir
: The new method. It allows copying a folder with all its contents recursively. - *
\ddTools::updateDocument
: The method now usesmysqli_info
instead ofmysql_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
- + 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
- + 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
- * 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
- * The structure of the repository has been completely changed to meet the Composer requirements.
Version 0.13.3
- *
\ddTools::createDocument
: Thepath
of a new document now properly depends on thealias
/id
of its parent.
Version 0.13.2
- *
\ddTools::createDocument
: The method has been slightly changed. The MODXdocumentMap
andaliasListing
config arrays are now being modified properly while the method is called.
Version 0.13.1
- *
\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 singlePHP_EOL
. - * Leading or trailing
PHP_EOL
's are now trimmed in email content.
- * All double
Version 0.13
- +
\ddTools::sendMail
: The new method. It sends emails.
Version 0.12
- +
\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 theexctract
function to turn the array into variables of the current symbol table.