CRM_Core_PrevNextCache_Sql
class CRM_Core_PrevNextCache_Sql implements CRM_Core_PrevNextCache_Interface
Class CRM_Core_PrevNextCache_Sql
Store the previous/next cache in a special-purpose SQL table.
Constants
cacheDays |
|
Methods
Store the results of a SQL query in the cache.
Store the contents of an array in the cache.
Save checkbox selections.
Get the selections.
Get the previous and next keys.
Delete an item from the prevnext cache table based on the entity.
Get count of matching rows.
Fetch a list of contacts from the prev/next cache for displaying a search results page
No description
Details
at line 55
bool
fillWithSql(string $cacheKey, string $sql, array $sqlParams = [])
Store the results of a SQL query in the cache.
at line 66
bool
fillWithArray(string $cacheKey, array $rows)
Store the contents of an array in the cache.
at line 96
markSelection(string $cacheKey, string $action, array|int|null $ids = NULL)
Save checkbox selections.
at line 152
array|NULL
getSelection(string $cacheKey, string $action = 'get')
Get the selections.
at line 185
array
getPositions(string $cacheKey, int $id1)
Get the previous and next keys.
at line 230
deleteItem(int $id = NULL, string $cacheKey = NULL)
Delete an item from the prevnext cache table based on the entity.
at line 252
int
getCount(string $cacheKey)
Get count of matching rows.
at line 267
array
fetch(string $cacheKey, int $offset, int $rowCount)
Fetch a list of contacts from the prev/next cache for displaying a search results page