Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Apr 27, 2021
1 parent db087ba commit 0e782bd
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 7 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# (MODX)EvolutionCMS.snippets.ddStash changelog


## Version 1.3 (2021-04-28)
* \* Attention! PHP >= 5.6 is required.
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.49.1 is required.
* \+ Parameters → `save`: Can also be set as [HJSON](https://hjson.github.io/) or as a native PHP object or array (e. g. for calls through `$modx->runSnippet`).
* \+ You can just call `\DDTools\Snippet::runSnippet` to run the snippet without DB and eval (see README → Examples).
* \+ `\ddStash\Snippet`: The new class. All snippet code was moved here.
* \* README:
* \* Documentation:
* \+ Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
* \* Examples: Fixed wrong JSON format.
* \+ Links.
* \* Composer.json:
* \+ `homepage`.
* \+ `support`
* \+ `authors`.
* \* `require` → `dd/evolutioncms-libraries-ddtools`: Fixed outdated name.


## Version 1.2.1 (2020-05-08)
* \* When you try to get non existent elements, an empty string will be returned.

Expand Down
20 changes: 19 additions & 1 deletion CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
# (MODX)EvolutionCMS.snippets.ddStash changelog


## Version 1.2.1 (2020-05-08)
## Версия 1.3 (2021-04-28)
* \* Внимание! Требуется PHP >= 5.6.
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.49.1.
* \+ Параметры → `save`: Также может быть задан, как [HJSON](https://hjson.github.io/) или как нативный PHP объект или массив (например, для вызовов через `$modx->runSnippet`).
* \+ Запустить сниппет без DB и eval можно через `\DDTools\Snippet::runSnippet` (см. примеры в README).
* \+ `\ddStash\Snippet`: Новый класс. Весь код сниппета перенесён туда.
* \* README:
* \* Документация:
* \+ Установка → Используя (MODX)EvolutionCMS.libraries.ddInstaller.
* \* Примеры: Исправлен некорректный формат JSON.
* \+ Ссылки.
* \* Composer.json:
* \+ `homepage`.
* \+ `support`
* \+ `authors`.
* \* `require` → `dd/evolutioncms-libraries-ddtools`: Исправлено устаревшее название библиотеки.


## Версия 1.2.1 (2020-05-08)
* \* При попытке получить несуществующий элемент будет возвращена пустая строка.


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Save data as [JSON](https://en.wikipedia.org/wiki/JSON) or [Query string](https:
##### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddStash`.
2. Description: `<b>1.2.1</b> Save data as JSON or QueryString, then extend if needed and use it later without database queries.`.
2. Description: `<b>1.3</b> Save data as JSON or QueryString, then extend if needed and use it later without database queries.`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddStash_snippet.php` file from the archive.
Expand Down
2 changes: 1 addition & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
##### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами

1. Название сниппета: `ddStash`.
2. Описание: `<b>1.2.1</b> Сохраняйте данные в формате JSON или QueryString, затем расширяйте по необходимости и используйте позже без запросов к базе данных.`.
2. Описание: `<b>1.3</b> Сохраняйте данные в формате JSON или QueryString, затем расширяйте по необходимости и используйте позже без запросов к базе данных.`.
3. Категория: `Core`.
4. Анализировать DocBlock: `no`.
5. Код сниппета (php): Вставьте содержимое файла `ddStash_snippet.php` из архива.
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-snippets-ddstash",
"type": "modxevo-snippet",
"version": "1.2.1",
"version": "1.3.0",
"description": "Save data as JSON or QueryString, then extend if needed and use it later without database queries.",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions ddStash_snippet.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* ddStash
* @version 1.2.1 (2020-05-08)
* @version 1.3 (2021-04-28)
*
* @see README.md
*
* @copyright 2019–2020 DD Group {@link http://www.DivanDesign.biz }
* @copyright 2019–2021 DD Group {@link https://DivanDesign.biz }
*/

//Include (MODX)EvolutionCMS.libraries.ddTools
Expand Down
2 changes: 1 addition & 1 deletion src/Snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Snippet extends \DDTools\Snippet {
protected
$version = '1.2.1',
$version = '1.3.0',

$params = [
//Defaults
Expand Down

0 comments on commit 0e782bd

Please sign in to comment.