CRM_Admin_Page_Extensions
class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic
This page displays the list of extensions registered in the system.
Properties
protected string | $_name | The name of the page (auto generated from class name) | from CRM_Core_Page |
protected object | $_title | The title associated with this page. | from CRM_Core_Page |
protected int | $_mode | A page can have multiple modes. (i.e. displays a different set of data based on the input | from CRM_Core_Page |
protected bool | $_embedded | Is this object being embedded in another object. If so the display routine needs to not do any work. (The parent object takes care of the display) | from CRM_Core_Page |
protected bool | $_print | Are we in print mode? if so we need to modify the display functionality to do a minimal display :) | from CRM_Core_Page |
static protected CRM_Core_Smarty | $_template | Cache the smarty template for efficiency reasons | from CRM_Core_Page |
static protected CRM_Core_Session | $_session | Cache the session for efficiency reasons | from CRM_Core_Page |
array | $ajaxResponse | What to return to the client if in ajax mode (snippet=json) | from CRM_Core_Page |
array | $urlPath | Url path used to reach this page | from CRM_Core_Page |
bool | $useLivePageJS | Should crm.livePage.js be added to the page? | from CRM_Core_Page |
protected | $_action | from CRM_Core_Page_Basic | |
static array | $_links | The action links that we need to display for the browse screen. |
Methods
Class constructor.
Run the basic page (run essentially starts execution for that page).
Store the variable with the value in the form scope.
Assign value to name in template by reference.
Appends values to template variables.
Returns an array containing template variables.
A wrapper for getTemplateFileName that includes calling the hook to prevent us from having to copy & paste the logic of calling the hook
Default extra tpl file basically just replaces .tpl with .extra.tpl i.e. we dont override
Assign metadata about fields to the template.
Get BAO Name.
Get action Links.
Get name of edit form.
Get edit form name.
Get user context.
Get userContext params.
Allow objects to be added based on permission.
Allows the derived class to add some more state variables to the controller. By default does nothing, and hence is abstract
Browse all options.
Given an object, get the actions that can be associated with this object. Check the is_active and is_required flags to display valid actions
Edit this entity.
Obtains the group name from url and sets the title.
Get the list of local extensions and format them as a table with status and action data.
Get the list of remote extensions and format them as a table with status and action data.
Take an extension's raw XML info and add information about the extension's status on the local system.
Details
in CRM_Core_Page_Basic at line 127
CRM_Core_Page
__construct(string $title = NULL, int $mode = NULL)
Class constructor.
at line 119
run()
Run the basic page (run essentially starts execution for that page).
in CRM_Core_Page at line 249
set(string|array $name, mixed $value = NULL)
Store the variable with the value in the form scope.
in CRM_Core_Page at line 260
mixed
get(string $name)
Get the variable from the form scope.
in CRM_Core_Page at line 271
assign(string $var, mixed $value = NULL)
Assign value to name in template.
in CRM_Core_Page at line 282
assign_by_ref(string $var, mixed $value)
Assign value to name in template by reference.
in CRM_Core_Page at line 294
append(array|string $tpl_var, mixed $value = NULL, bool $merge = FALSE)
Appends values to template variables.
in CRM_Core_Page at line 305
array
get_template_vars(string $name = NULL)
Returns an array containing template variables.
in CRM_Core_Page at line 312
reset()
Destroy all the session state of this page.
in CRM_Core_Page at line 321
string
getTemplateFileName()
Use the form name to create the tpl file name.
in CRM_Core_Page at line 335
getHookedTemplateFileName()
A wrapper for getTemplateFileName that includes calling the hook to prevent us from having to copy & paste the logic of calling the hook
in CRM_Core_Page at line 347
string
overrideExtraTemplateFileName()
Default extra tpl file basically just replaces .tpl with .extra.tpl i.e. we dont override
in CRM_Core_Page at line 356
setEmbedded(bool $embedded)
Setter for embedded.
in CRM_Core_Page at line 366
bool
getEmbedded()
Getter for embedded.
in CRM_Core_Page at line 375
setPrint(bool $print)
Setter for print.
in CRM_Core_Page at line 385
bool
getPrint()
Getter for print.
in CRM_Core_Page at line 392
static CRM_Core_Smarty
getTemplate()
in CRM_Core_Page at line 401
null
getVar(string $name)
in CRM_Core_Page at line 409
setVar(string $name, $value)
in CRM_Core_Page at line 426
protected
assignFieldMetadataToTemplate(string $entity)
Assign metadata about fields to the template.
In order to allow the template to format fields we assign information about them to the template.
At this stage only date field metadata is assigned as that is the only use-case in play and we don't want to assign a lot of unneeded data.
at line 67
string
getBAOName()
Get BAO Name.
at line 77
array
links()
Get action Links.
at line 286
string
editForm()
Get name of edit form.
at line 296
string
editName()
Get edit form name.
at line 308
string
userContext(int $mode = NULL)
Get user context.
at line 320
string
userContextParams(int $mode = NULL)
Get userContext params.
in CRM_Core_Page_Basic at line 103
string
checkPermission(int $id, int $name)
Allow objects to be added based on permission.
in CRM_Core_Page_Basic at line 114
addValues(CRM_Core_Controller $controller)
Allows the derived class to add some more state variables to the controller. By default does nothing, and hence is abstract
in CRM_Core_Page_Basic at line 176
int
getIdAndAction()
Retrieve the action and ID from the request.
Action is assigned to the template while we're at it. This is pulled from
the run()
method above.
in CRM_Core_Page_Basic at line 199
string
superRun()
at line 127
browse()
Browse all options.
in CRM_Core_Page_Basic at line 303
action(CRM_Core_DAO $object, int $action, array $values, array $links, string $permission, bool $forceAction = FALSE)
Given an object, get the actions that can be associated with this object. Check the is_active and is_required flags to display valid actions
in CRM_Core_Page_Basic at line 392
edit(int $mode, int $id = NULL, bool $imageUpload = FALSE, bool $pushUserContext = TRUE)
Edit this entity.
at line 50
preProcess()
Obtains the group name from url and sets the title.
at line 159
array
formatLocalExtensionRows()
Get the list of local extensions and format them as a table with status and action data.
at line 235
array
formatRemoteExtensionRows(array $localExtensionRows)
Get the list of remote extensions and format them as a table with status and action data.
at line 334
static array
createExtendedInfo(CRM_Extension_Info $obj)
Take an extension's raw XML info and add information about the extension's status on the local system.
The result format resembles the old CRM_Core_Extensions_Extension.