CRM_Core_Page_EntityPageTrait
Tags
Table of Contents
Properties
- $_contactID : int
- Contact ID of the contact on the page.
- $_contactId : int
- Contact ID of the contact on the page.
- $_links : array<string|int, mixed>
- The action links that we need to display for the browse screen.
- $_permission : int
- $_action : int
- The mode of operation for this page
- $_context : string
- The context that we are working on.
- $_id : int
- The id of the contact.
Methods
- getAction() : mixed
- getContactId() : int
- Get the contact ID
- getContext() : string
- Get the context we are working in
- getDefaultContext() : string|null
- Explicitly declare the form context.
- getEntityId() : int|null
- Get the entity id being edited.
- preProcessQuickEntityPage() : mixed
- setContactId() : mixed
- Set the contact ID
- getDefaultAction() : string
- isDeleteContext() : bool
- Is the form being used in the context of a deletion.
- isEditContext() : bool
- Is the form being used in the context of a edit.
- isViewContext() : bool
- Is the form being used in the context of a view.
Properties
$_contactID
Contact ID of the contact on the page.
public
int
$_contactID
= \NULL
$_contactId
Contact ID of the contact on the page.
Historically pages alternate between $_contactID and $_contactId. We'll standardise on one
public
int
$_contactId
= \NULL
$_links
The action links that we need to display for the browse screen.
public
static array<string|int, mixed>
$_links
= \NULL
$_permission
public
int
$_permission
= \NULL
$_action
The mode of operation for this page
protected
int
$_action
$_context
The context that we are working on.
protected
string
$_context
$_id
The id of the contact.
protected
int
$_id
Methods
getAction()
public
getAction() : mixed
getContactId()
Get the contact ID
public
getContactId() : int
Return values
intgetContext()
Get the context we are working in
public
getContext() : string
Return values
stringgetDefaultContext()
Explicitly declare the form context.
public
getDefaultContext() : string|null
Return values
string|nullgetEntityId()
Get the entity id being edited.
public
getEntityId() : int|null
Return values
int|nullpreProcessQuickEntityPage()
public
preProcessQuickEntityPage() : mixed
setContactId()
Set the contact ID
public
setContactId(mixed $contactId) : mixed
Parameters
- $contactId : mixed
getDefaultAction()
protected
getDefaultAction() : string
Return values
stringisDeleteContext()
Is the form being used in the context of a deletion.
protected
isDeleteContext() : bool
(For some reason rather than having separate forms Civi overloads one form).
Return values
boolisEditContext()
Is the form being used in the context of a edit.
protected
isEditContext() : bool
Return values
boolisViewContext()
Is the form being used in the context of a view.
protected
isViewContext() : bool