CRM_Contact_Selector_Controller
class CRM_Contact_Selector_Controller extends CRM_Core_Selector_Controller
Constants
SESSION |
|
TEMPLATE |
|
TRANSFER |
|
EXPORT |
|
SCREEN |
|
|
Properties
protected object | $_object | A CRM Object that implements CRM_Core_Selector_API. | from CRM_Core_Selector_Controller |
protected CRM_Utils_Sort | $_sort | from CRM_Core_Selector_Controller | |
protected int | $_sortID | The current column to sort on | from CRM_Core_Selector_Controller |
protected array | $_sortOrder | The sortOrder array | from CRM_Core_Selector_Controller |
protected CRM_Utils_Pager | $_pager | from CRM_Core_Selector_Controller | |
protected int | $_pageID | The pageID | from CRM_Core_Selector_Controller |
protected int | $_pagerOffset | Offset | from CRM_Core_Selector_Controller |
protected int | $_pagerRowCount | Number of rows to return | from CRM_Core_Selector_Controller |
protected int | $_total | Total number of rows | from CRM_Core_Selector_Controller |
protected int | $_action | The objectAction for the WebObject | from CRM_Core_Selector_Controller |
protected string | $_content | This caches the content for the display system | from CRM_Core_Selector_Controller |
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_Selector_Controller |
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_Selector_Controller |
protected Object | $_store | The storage object (typically a form or a page) | from CRM_Core_Selector_Controller |
protected int | $_output | Output target, session, template or both? | from CRM_Core_Selector_Controller |
protected int | $_prefix | Prefif for the selector variables | from CRM_Core_Selector_Controller |
static CRM_Core_Smarty | $_template | Cache the smarty template for efficiency reasons | from CRM_Core_Selector_Controller |
static array | $_properties | Array of properties that the controller dumps into the output object | from CRM_Core_Selector_Controller |
protected bool | $_dynamicAction | Should we compute actions dynamically (since they are quite verbose) | from CRM_Core_Selector_Controller |
Methods
Class constructor.
Have the GET vars changed, i.e. pageId or sortId that forces us to recompute the search values
Heart of the Controller. This is where all the action takes place
Default function for qill.
Move the variables from the session to the template.
Details
in CRM_Core_Selector_Controller at line 197
CRM_Core_Selector_Controller
__construct(CRM_Core_Selector_API $object, int $pageID, int $sortID, int $action, CRM_Core_Page|CRM_Core_Form $store = NULL, int $output = self::TEMPLATE, null $prefix = NULL, null $case = NULL)
Class constructor.
in CRM_Core_Selector_Controller at line 265
bool
hasChanged(int $reset)
Have the GET vars changed, i.e. pageId or sortId that forces us to recompute the search values
in CRM_Core_Selector_Controller at line 303
void
run()
Heart of the Controller. This is where all the action takes place
The rows are fetched and stored depending on the type of output needed
For export/printing all rows are selected.
for displaying on screen paging parameters are used to display the required rows.
also depending on output type of session or template rows are appropriately stored in session or template variables are updated.
in CRM_Core_Selector_Controller at line 413
array
getRows(CRM_Core_Form $form)
Retrieve rows.
at line 43
string
getQill()
Default function for qill.
If needed to be implemented, we expect the subclass to do it
in CRM_Core_Selector_Controller at line 439
mixed
getSummary()
in CRM_Core_Selector_Controller at line 448
CRM_Utils_Pager
getPager()
Getter for pager.
in CRM_Core_Selector_Controller at line 457
CRM_Utils_Sort
getSort()
Getter for sort.
in CRM_Core_Selector_Controller at line 466
void
moveFromSessionToTemplate()
Move the variables from the session to the template.
in CRM_Core_Selector_Controller at line 510
void
setEmbedded(bool $embedded)
Setter for embedded.
in CRM_Core_Selector_Controller at line 520
bool
getEmbedded()
Getter for embedded.
in CRM_Core_Selector_Controller at line 531
void
setPrint(bool $print)
Setter for print.
in CRM_Core_Selector_Controller at line 541
bool
getPrint()
Getter for print.