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 = array())
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
isProviderEnabled(string $providerName)
Check if a provider is allowed to add stuff.
static
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 = array())
Add an item to the recent stack.
at line 161
static
del(array $recentItem)
Delete an item from the recent stack.
at line 187
static
delContact(string $id)
Delete an item from the recent stack.
at line 213
static
isProviderEnabled(string $providerName)
Check if a provider is allowed to add stuff.
If correspondig setting is empty, all are allowed
at line 234
static
getProviders()
Gets the list of available providers to civi's recent items stack