-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/components/xparser/events/xparseronafterpagescollected.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# xParserOnAfterPagesCollected | ||
|
||
**Событие доступно с версии 1.11.25**. | ||
|
||
После обхода всех страниц задания и получения обработанных полей, но **перед** получением полей подзаданий. | ||
|
||
Одно из интересных событий, т.к. позволяет менять данные статей, возвращая массив `$rows` в плагине: | ||
|
||
```$modx->event->returnedValues['rows'] = $rows;``` | ||
|
||
|
||
## Параметры | ||
|
||
- `xParser $xp` — экземпляр основного класса компонента, | ||
- `xpParser $parser` — экземпляр класса парсера, | ||
- `array $task` — массив задания, | ||
- `array $rows` — массив со списком обработанных статей. |
17 changes: 17 additions & 0 deletions
17
docs/components/xparser/events/xparserontaskrowsprepared.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# xParserOnTaskRowsPrepared | ||
|
||
**Событие доступно с версии 1.11.8**. | ||
|
||
После формирования обработанных данных ресурса, но **перед** скачиванием медиа-контента. | ||
|
||
Одно из интересных событий, т.к. позволяет менять данные статей, возвращая массив `$rows` в плагине: | ||
|
||
```$modx->event->returnedValues['rows'] = $rows;``` | ||
|
||
|
||
## Параметры | ||
|
||
- `xParser $xp` — экземпляр основного класса компонента, | ||
- `xpParser $parser` — экземпляр класса парсера, | ||
- `array $task` — массив задания, | ||
- `array $rows` — массив со списком обработанных статей. |