CRM_Contribute_Page_UserDashboard
class CRM_Contribute_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard
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 boolean | $_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 boolean | $_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 |
$_contactId | from CRM_Contact_Page_View_UserDashBoard | ||
bool | $_onlyPublicGroups | Always show public groups. | from CRM_Contact_Page_View_UserDashBoard |
$_edit | from CRM_Contact_Page_View_UserDashBoard | ||
static array | $_links | The action links that we need to display for the browse screen. | from CRM_Contact_Page_View_UserDashBoard |
Methods
the main function that is called when the page loads, it decides the which action has to be taken for the 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.
called when action is browse.
Details
in CRM_Contact_Page_View_UserDashBoard at line 58
CRM_Core_Page
__construct()
at line 141
run()
the main function that is called when the page loads, it decides the which action has to be taken for the page.
in CRM_Core_Page at line 245
set(string|array $name, mixed $value = NULL)
Store the variable with the value in the form scope.
in CRM_Core_Page at line 256
mixed
get(string $name)
Get the variable from the form scope.
in CRM_Core_Page at line 267
assign(string $var, mixed $value = NULL)
Assign value to name in template.
in CRM_Core_Page at line 278
assign_by_ref(string $var, mixed $value)
Assign value to name in template by reference.
in CRM_Core_Page at line 290
append(array|string $tpl_var, mixed $value = NULL, bool $merge = FALSE)
Appends values to template variables.
in CRM_Core_Page at line 301
array
get_template_vars(string $name = NULL)
Returns an array containing template variables.
in CRM_Core_Page at line 308
reset()
Destroy all the session state of this page.
in CRM_Core_Page at line 317
string
getTemplateFileName()
Use the form name to create the tpl file name.
in CRM_Core_Page at line 331
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 343
string
overrideExtraTemplateFileName()
Default extra tpl file basically just replaces .tpl with .extra.tpl i.e. we dont override
in CRM_Core_Page at line 352
setEmbedded(bool $embedded)
Setter for embedded.
in CRM_Core_Page at line 362
bool
getEmbedded()
Getter for embedded.
in CRM_Core_Page at line 371
setPrint(bool $print)
Setter for print.
in CRM_Core_Page at line 381
bool
getPrint()
Getter for print.
in CRM_Core_Page at line 388
static CRM_Core_Smarty
getTemplate()
in CRM_Core_Page at line 397
null
getVar(string $name)
in CRM_Core_Page at line 405
setVar(string $name, $value)
in CRM_Core_Page at line 422
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.
in CRM_Contact_Page_View_UserDashBoard at line 90
preProcess()
Heart of the viewing process.
The runner gets all the meta data for the contact and calls the appropriate type of page to view.
in CRM_Contact_Page_View_UserDashBoard at line 108
buildUserDashBoard()
Build user dashboard.
in CRM_Contact_Page_View_UserDashBoard at line 209
static array
links()
Get action links.
at line 38
listContribution()
called when action is browse.