CRM_Core_PrevNextCache_Interface
interface CRM_Core_PrevNextCache_Interface
Interface CRM_Core_PrevNextCache_Interface
The previous/next cache is a service for tracking query results. Results are stored in a cache, and they may be individually toggled.
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
Remove items from prev/next cache no longer current
Details
        at         line 50
                            bool
    fillWithSql(string $cacheKey, string $sql, array $sqlParams = [])
        
    
    Store the results of a SQL query in the cache.
        at         line 62
                            bool
    fillWithArray(string $cacheKey, array $rows)
        
    
    Store the contents of an array in the cache.
        at         line 74
                            
    markSelection(string $cacheKey, string $action, array|int|null $ids = NULL)
        
    
    Save checkbox selections.
        at         line 88
                            array|NULL
    getSelection(string $cacheKey, string $action = 'get')
        
    
    Get the selections.
        at         line 104
                            array
    getPositions(string $cacheKey, int $id1)
        
    
    Get the previous and next keys.
        at         line 112
                            
    deleteItem(int $id = NULL, string $cacheKey = NULL)
        
    
    Delete an item from the prevnext cache table based on the entity.
        at         line 120
                            int
    getCount(string $cacheKey)
        
    
    Get count of matching rows.
        at         line 131
                            array
    fetch(string $cacheKey, int $offset, int $rowCount)
        
    
    Fetch a list of contacts from the prev/next cache for displaying a search results page
        at         line 136
                            
    cleanup()
        
    
    Remove items from prev/next cache no longer current