class CRM_Core_Invoke

Given an argument list, invoke the appropriate CRM function Serves as a wrapper between the UserFrameWork and Core CRM

Methods

static string
invoke(array $args)

This is the main front-controller that integrates with the CMS. Any page-request that is sent to the CMS and intended for CiviCRM should be processed by invoke().

static string
_invoke(array $args)

This is the same as invoke(), but it does not include exception handling.

static 
hackMenuRebuild(array $args)

Hackish support /civicrm/menu/rebuild

static 
init(array $args)

Perform general setup.

static 
hackStandalone(array $args)

Hackish support for /standalone/*

static array;
getItem(array $args)

Determine which menu $item corresponds to $args

static string,
runItem(array $item)

Given a menu item, call the appropriate controller and return the response

static 
form($action, $contact_type, $contact_sub_type)

This function contains the default action.

static 
statusCheck(CRM_Core_Smarty $template)

Show status in the footer (admin only)

static 
rebuildMenuAndCaches(bool $triggerRebuild = FALSE, bool $sessionReset = FALSE)

No description

Details

at line 50
static string invoke(array $args)

This is the main front-controller that integrates with the CMS. Any page-request that is sent to the CMS and intended for CiviCRM should be processed by invoke().

Parameters

array $args The parts of the URL which identify the intended CiviCRM page (e.g. array('civicrm', 'event', 'register')).

Return Value

string HTML. For non-HTML content, invoke() may call print() and exit().

at line 69
static string _invoke(array $args)

This is the same as invoke(), but it does not include exception handling.

Parameters

array $args The parts of the URL which identify the intended CiviCRM page (e.g. array('civicrm', 'event', 'register')).

Return Value

string HTML. For non-HTML content, invoke() may call print() and exit().

at line 111
static hackMenuRebuild(array $args)

Hackish support /civicrm/menu/rebuild

Parameters

array $args List of path parts.

at line 132
static init(array $args)

Perform general setup.

Parameters

array $args List of path parts.

at line 152
static hackStandalone(array $args)

Hackish support for /standalone/*

Parameters

array $args List of path parts.

at line 172
static array; getItem(array $args)

Determine which menu $item corresponds to $args

Parameters

array $args List of path parts.

Return Value

array; see CRM_Core_Menu

at line 199
static string, runItem(array $item)

Given a menu item, call the appropriate controller and return the response

Parameters

array $item See CRM_Core_Menu.

Return Value

string, HTML

at line 331
static form($action, $contact_type, $contact_sub_type)

This function contains the default action.

Parameters

$action
$contact_type
$contact_sub_type

at line 349
static statusCheck(CRM_Core_Smarty $template)

Show status in the footer (admin only)

Parameters

CRM_Core_Smarty $template

at line 365
static rebuildMenuAndCaches(bool $triggerRebuild = FALSE, bool $sessionReset = FALSE)

Parameters

bool $triggerRebuild
bool $sessionReset

Exceptions

Exception