|
| __construct (array $guid_properties) |
| Configure the preloader to check these properties of fetched objects for GUIDs. More...
|
|
| preload ($objects) |
| Preload entities based on the given objects. More...
|
|
Definition at line 12 of file EntityPreloader.php.
Elgg\EntityPreloader::__construct |
( |
array |
$guid_properties | ) |
|
Configure the preloader to check these properties of fetched objects for GUIDs.
- Parameters
-
array | $guid_properties | e.g. array("owner_guid") |
Definition at line 24 of file EntityPreloader.php.
Elgg\EntityPreloader::getGuidsToLoad |
( |
|
$objects | ) |
|
|
protected |
Get GUIDs that need to be loaded.
To simplify the user API, this function accepts non-arrays and arrays containing non-objects
- Parameters
-
object[] | $objects Objects from which to pluck GUIDs |
- Returns
- int[]
Definition at line 54 of file EntityPreloader.php.
Elgg\EntityPreloader::preload |
( |
|
$objects | ) |
|
Preload entities based on the given objects.
- Parameters
-
object[] | $objects Objects–e.g. loaded from an Elgg query–from which we can pluck GUIDs to preload |
- Returns
- void
Definition at line 35 of file EntityPreloader.php.
Elgg\EntityPreloader::$properties |
|
protected |
The documentation for this class was generated from the following file: