From 8c806f3850c1f41653fa3a6a8f4461e8947e18e5 Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Wed, 10 Mar 2021 16:27:12 +0300 Subject: [PATCH 1/2] + `\DDTools\Snippet::prepareParams`: The new method. --- src/Snippet/Snippet.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Snippet/Snippet.php b/src/Snippet/Snippet.php index 8af232b..1fe9cd6 100644 --- a/src/Snippet/Snippet.php +++ b/src/Snippet/Snippet.php @@ -36,7 +36,7 @@ abstract class Snippet { /** * __construct - * @version 1.1 (2021-02-24) + * @version 1.1.1 (2021-03-10) * * @param $params {stdClass|arrayAssociative|stringJsonObject|stringQueryFormatted} */ @@ -76,6 +76,18 @@ public function __construct($params = []){ //# Prepare params + $this->prepareParams($params); + } + + /** + * prepareParams + * @version 1.0 (2021-03-10) + * + * @param $params {stdClass|arrayAssociative|stringJsonObject|stringQueryFormatted} + * + * @return {void} + */ + protected function prepareParams($params = []){ $params = \DDTools\ObjectTools::convertType([ 'object' => $params, 'type' => 'objectStdClass' From ed8501b376340d7e1f2925e09195de10f015146c Mon Sep 17 00:00:00 2001 From: Ilyas Ronef Date: Wed, 10 Mar 2021 16:29:28 +0300 Subject: [PATCH 2/2] Prerelease --- CHANGELOG.md | 4 ++++ CHANGELOG_ru.md | 4 ++++ composer.json | 2 +- modx.ddtools.class.php | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dab6eda..b60eb29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # (MODX)EvolutionCMS.libraries.ddTools changelog +## Version 0.44 (2021-03-10) +* \+ `\DDTools\Snippet::prepareParams`: The new method. + + ## Version 0.43 (2021-03-10) * \* Attention! PHP >= 5.6 is required. * \* `\DDTools\Response`: diff --git a/CHANGELOG_ru.md b/CHANGELOG_ru.md index 77cfad3..b748ddb 100644 --- a/CHANGELOG_ru.md +++ b/CHANGELOG_ru.md @@ -1,6 +1,10 @@ # (MODX)EvolutionCMS.libraries.ddTools changelog +## Версия 0.44 (2021-03-10) +* \+ `\DDTools\Snippet::prepareParams`: Новый метод. + + ## Версия 0.43 (2021-03-10) * \* Внимание! Требуется PHP >= 5.6. * \* `\DDTools\Response`: diff --git a/composer.json b/composer.json index 15969e0..6522ab5 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dd/evolutioncms-libraries-ddtools", "type": "modxevo-library-ddtools", - "version": "0.43.0", + "version": "0.44.0", "description": "A library with various tools facilitating your work.", "keywords": [ "modx", diff --git a/modx.ddtools.class.php b/modx.ddtools.class.php index 1f2dbd8..039b6f8 100644 --- a/modx.ddtools.class.php +++ b/modx.ddtools.class.php @@ -1,7 +1,7 @@