Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Mar 8, 2023
1 parent 988648a commit 5724fff
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# (MODX)EvolutionCMS.libraries.ddTools changelog


## Version 0.57 (2023-03-09)
* \+ `\DDTools\ObjectTools::getPropValue` → Parameters → `$params->propName`: The method can now get the value of an object property or an array element in any nesting level. Just use `'.'` to get nested properties.
Several examples (see full examples in README):
* \* `somePlainProp` — get first-level property.
* \* `someObjectProp.secondLevelProp` — get property of the `someObjectProp` object|array.
* \* `someArrayProp.0.thirdLevelProp` — get property of the zero element of the `someArrayProp` array.


## Version 0.56 (2023-01-29)
* \+ `\ddTools::sort2dArray` → Parameters → `$array[$i]`: Can also be set as object.
* \* `\DDTools\Base\Base`:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# (MODX)EvolutionCMS.libraries.ddTools changelog


## Версия 0.57 (2023-03-09)
* \+ `\DDTools\ObjectTools::getPropValue` → Параметры → `$params->propName`: Теперь метод умеет получать значение свойства объекта или элемента массива на любом уровне вложенности. Просто используйте `'.'` в параметре для получения свойств вложенных элементов.
Несколько примеров (см. полные примеры в README):
* \* `somePlainProp` — получить свойство первого уровня.
* \* `someObjectProp.secondLevelProp` — получить свойство объекта|массива `someObjectProp`.
* \* `someArrayProp.0.thirdLevelProp` — получить свойство нулевого элемента массива `someArrayProp`.


## Версия 0.56 (2023-01-29)
* \+ `\ddTools::sort2dArray` → Параметры → `$array[$i]`: Также может быть задан, как объект.
* \* `\DDTools\Base\Base`:
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.56.0",
"version": "0.57.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.56 (2023-01-29)
* @version 0.57 (2023-03-09)
*
* @see README.md
*
Expand Down

0 comments on commit 5724fff

Please sign in to comment.