Skip to content

Commit

Permalink
Version 0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Mar 10, 2021
2 parents 11f36cb + ed8501b commit 6768a6a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion modx.ddtools.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* EvolutionCMS.libraries.ddTools
* @version 0.43 (2021-03-10)
* @version 0.44 (2021-03-10)
*
* @see README.md
*
Expand Down
14 changes: 13 additions & 1 deletion src/Snippet/Snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 6768a6a

Please sign in to comment.