CRM_Core_Component_Info
abstract class CRM_Core_Component_Info
This interface defines methods that need to be implemented for a component to introduce itself to the system.
Constants
COMPONENT_INVOKE_CLASS |
Name of the class (minus component namespace path) of the component invocation class'es name. |
COMPONENT_BAO_QUERY_CLASS |
Name of the class (minus component namespace path) of the component BAO Query class'es name. |
COMPONENT_USERDASHBOARD_CLASS |
Name of the class (minus component namespace path) of the component user dashboard plugin. |
COMPONENT_TAB_CLASS |
Name of the class (minus component namespace path) of the component tab offered to contact record view. |
COMPONENT_ADVSEARCHPANE_CLASS |
Name of the class (minus component namespace path) of the component tab offered to contact record view. |
COMPONENT_XML_RESOURCES |
Name of the directory (assumed in component directory) where xml resources used by this component live. |
COMPONENT_MENU_XML |
Name of the directory (assumed in xml resources path) containing component menu definition XML file names. |
Properties
array | $info | Component settings as key/value pairs. | |
protected string | $keyword | Component keyword. |
Methods
No description
EXPERIMENTAL: Get a list of AngularJS modules
Provides base information about the component.
Get a list of entities to register via API.
Provides permissions that are unwise for Anonymous Roles to have.
Provides permissions that are used by component.
Provides information about user dashboard element.
Provides information about user dashboard element.
Get icon font class representing this component.
Provides information about advanced search pane offered by this component.
Provides potential activity types that this component might want to register in activity history.
Provides information whether given component is currently marked as enabled in configuration.
Provides component's menu definition object.
Provides component's invocation object.
Provides component's BAO Query object.
Builds advanced search form's component specific pane.
Provides component's user dashboard page object.
Provides component's contact record tab object.
Provides component's advanced search pane's template path.
Provides information whether given component uses system wide search.
Provides the xml menu files.
Simple "keyword" getter.
Details
at line 100
__construct(string $name, string $namespace, int $componentID)
at line 115
array
getAngularModules()
EXPERIMENTAL: Get a list of AngularJS modules
at line 127
abstract array
getInfo()
Provides base information about the component.
Needs to be implemented in component's information class.
at line 136
array
getManagedEntities()
Get a list of entities to register via API.
at line 147
array
getAnonymousPermissionWarnings()
Provides permissions that are unwise for Anonymous Roles to have.
at line 164
abstract array|null
getPermissions(bool $getAllUnconditionally = FALSE)
Provides permissions that are used by component.
Needs to be implemented in component's information class.
NOTE: if using conditionally permission return, implementation of $getAllUnconditionally is required.
at line 177
array
getReferenceCounts(CRM_Core_DAO $dao)
Determine how many other records refer to a given record.
at line 189
abstract array|null
getUserDashboardElement()
Provides information about user dashboard element.
offered by this component.
at line 199
abstract array|null
registerTab()
Provides information about user dashboard element.
offered by this component.
at line 206
string
getIcon()
Get icon font class representing this component.
at line 218
abstract array|null
registerAdvancedSearchPane()
Provides information about advanced search pane offered by this component.
at line 229
abstract array|null
getActivityTypes()
Provides potential activity types that this component might want to register in activity history.
Needs to be implemented in component's information class.
at line 238
bool
isEnabled()
Provides information whether given component is currently marked as enabled in configuration.
at line 252
mixed
getMenuObject()
Provides component's menu definition object.
at line 262
mixed
getInvokeObject()
Provides component's invocation object.
at line 272
mixed
getBAOQueryObject()
Provides component's BAO Query object.
at line 281
buildAdvancedSearchPaneForm(CRM_Core_Form $form)
Builds advanced search form's component specific pane.
at line 292
mixed
getUserDashboardObject()
Provides component's user dashboard page object.
at line 302
mixed
getTabObject()
Provides component's contact record tab object.
at line 312
string
getAdvancedSearchPaneTemplatePath()
Provides component's advanced search pane's template path.
at line 323
bool
usesSearch()
Provides information whether given component uses system wide search.
at line 333
array
menuFiles()
Provides the xml menu files.
at line 345
string
getKeyword()
Simple "keyword" getter.
FIXME: It should be protected so the keyword is not FIXME: accessed from beyond component infrastructure.