Comments preloader.
More...
Comments preloader.
- Since
- 4.1
Definition at line 11 of file Preloader.php.
◆ __construct()
Elgg\Comments\Preloader::__construct |
( |
protected DataService |
$data | ) |
|
Create a preloader.
- Parameters
-
\Elgg\Comments\DataService | $data | a dataservice |
Definition at line 18 of file Preloader.php.
◆ getGuidsToPreload()
Elgg\Comments\Preloader::getGuidsToPreload |
( |
array |
$items | ) |
|
|
protected |
Convert entities to guids.
- Parameters
-
\ElggEntity[] | \ElggRiverItem[] | $items | the entities to process |
- Returns
- int[]
Definition at line 72 of file Preloader.php.
◆ preload()
static Elgg\Comments\Preloader::preload |
( |
\Elgg\Event |
$event | ) |
|
|
static |
Event handler for listings to determine if preloading is needed.
- Parameters
-
\Elgg\Event | $event | 'view_vars', 'page/components/list' |
- Returns
- void
Definition at line 95 of file Preloader.php.
◆ preloadCountsFromQuery()
Elgg\Comments\Preloader::preloadCountsFromQuery |
( |
array |
$guids | ) |
|
|
protected |
Preload comments count based on guids.
- Parameters
-
int[] | $guids | the guids to preload |
- Returns
- void
Definition at line 41 of file Preloader.php.
◆ preloadForList()
Elgg\Comments\Preloader::preloadForList |
( |
array |
$items | ) |
|
Preload comments count for a set of items.
- Parameters
-
\ElggEntity[] | \ElggRiverItem[] | $items | the items to preload for |
- Returns
- void
Definition at line 28 of file Preloader.php.
The documentation for this class was generated from the following file: