Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Jul 5, 2020
1 parent 52c0d8b commit 3d56f21
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# (MODX)EvolutionCMS.snippets.ddGetDocuments changelog


## Version 1.1 (2020-07-05)
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.40.1 is required (not tested in older versions).
* \* Improved compatibility with new versions of (MODX)EvolutionCMS.libraries.ddTools.
* \* Snippet:
* \+ `extendersParams->pagination->wrapperTpl`: The new placeholder `[+totalPages+]`.
* \* Small refactoring.
* \* `\ddGetDocuments\DataProvider\DataProvider::prepareQueryData`: TVs default values are used (#6).
* \* `\ddGetDocuments\Outputter\Json\Outputter::parse`: Removed unused variable.
* \+ README, CHAGNELOG: Style improvements.
* \* Composer.json:
* \+ `homepage`.
* \+ `authors`.
* \* `name`: Renamed as `evolutioncms-snippets-ddgetdocuments` from `dd/modxevo-snippet-ddgetdocuments`.
* \* `require`:→ `dd/evolutioncms-libraries-ddtools`: Renamed from `dd/modxevo-library-ddtools`.


## Version 1.0 (2020-03-11)
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.30 is required.
* \+ Providers → Customdbtable. Get resources from custom DB table.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A snippet for fetching and parsing resources from the document tree or custom DB
#### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddGetDocuments`.
2. Description: `<b>1.0</b> A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.`.
2. Description: `<b>1.1</b> A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddGetDocuments_snippet.php` file from the archive.
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-ddgetdocuments",
"type": "modxevo-snippet",
"version": "1.0.0",
"version": "1.1.0",
"description": "A snippet for fetching and parsing resources from the document tree or custom DB table by a custom rule.",
"keywords": [
"modx",
Expand Down
2 changes: 1 addition & 1 deletion ddGetDocuments_snippet.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ddGetDocuments
* @version 1.0 (2020-03-11)
* @version 1.1 (2020-07-05)
*
* @see README.md
*
Expand Down
4 changes: 2 additions & 2 deletions src/DataProvider/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public final static function includeProviderByName($providerName){

/**
* __construct
* @version 1.2.4 (2020-03-11)
* @version 1.3 (2020-05-20)
*
* @param $input {\ddGetDocuments\Input}
*/
Expand Down Expand Up @@ -588,7 +588,7 @@ protected final function prepareQueryData($params = []){

/**
* prepareQuery
* @version 1.2.1 (2020-03-10)
* @version 1.3 (2020-05-20)
*
* @param $params {arrayAssociative|stdClass}
* @param $params['resourcesIds'] — Document IDs to get ($this->filter will be used). Default: ''.
Expand Down

0 comments on commit 3d56f21

Please sign in to comment.