CRM_Utils_Recent
class CRM_Utils_Recent
Recent items utility class.
Constants
MAX_ITEMS |
Store name |
STORE_NAME |
Store name |
Methods
static
initialize()
Initialize this class and set the static variables.
static array
get()
Return the recently viewed array.
static
add(string $title, string $url, string $id, $type, int $contactId, string $contactName, array $others = [])
Add an item to the recent stack.
static
del(array $recentItem)
Delete an item from the recent stack.
static
delContact(string $id)
Delete an item from the recent stack.
static bool
isProviderEnabled(string $providerName)
Check if a provider is allowed to add stuff.
static array
getProviders()
Gets the list of available providers to civi's recent items stack
Details
at line 61
static
initialize()
Initialize this class and set the static variables.
at line 81
static array
get()
Return the recently viewed array.
at line 100
static
add(string $title, string $url, string $id, $type, int $contactId, string $contactName, array $others = [])
Add an item to the recent stack.
at line 161
static
del(array $recentItem)
Delete an item from the recent stack.
at line 188
static
delContact(string $id)
Delete an item from the recent stack.
at line 216
static bool
isProviderEnabled(string $providerName)
Check if a provider is allowed to add stuff.
If corresponding setting is empty, all are allowed
at line 239
static array
getProviders()
Gets the list of available providers to civi's recent items stack