class CRM_Contact_Selector_Controller extends CRM_Core_Selector_Controller

Constants

SESSION

TEMPLATE

TRANSFER

EXPORT

SCREEN

PDF

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 $_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

__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.

bool
hasChanged(int $reset)

Have the GET vars changed, i.e. pageId or sortId that forces us to recompute the search values

void
run()

Heart of the Controller. This is where all the action takes place

array
getRows(CRM_Core_Form $form)

Retrieve rows.

string
getQill()

Default function for qill.

mixed
getSummary()

No description

void
moveFromSessionToTemplate()

Move the variables from the session to the template.

void
setEmbedded(bool $embedded)

Setter for embedded.

bool
getEmbedded()

Getter for embedded.

void
setPrint(bool $print)

Setter for print.

bool
getPrint()

Getter for print.

setDynamicAction($value)

No description

bool
getDynamicAction()

No description

Details

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.

Parameters

CRM_Core_Selector_API $object An object that implements the selector API.
int $pageID Default pageID.
int $sortID Default sortID.
int $action The actions to potentially support.
CRM_Core_Page|CRM_Core_Form $store place in session to store some values
int $output What do we so with the output, session/template//both.
null $prefix
null $case

Return Value

CRM_Core_Selector_Controller

bool hasChanged(int $reset)

Have the GET vars changed, i.e. pageId or sortId that forces us to recompute the search values

Parameters

int $reset Are we being reset.

Return Value

bool if the GET params are different from the session params

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.

Return Value

void

array getRows(CRM_Core_Form $form)

Retrieve rows.

Parameters

CRM_Core_Form $form

Return Value

array Array of rows

at line 42
string getQill()

Default function for qill.

If needed to be implemented, we expect the subclass to do it

Return Value

string the status message

mixed getSummary()

Return Value

mixed

CRM_Utils_Pager getPager()

Getter for pager.

Return Value

CRM_Utils_Pager

CRM_Utils_Sort getSort()

Getter for sort.

Return Value

CRM_Utils_Sort

void moveFromSessionToTemplate()

Move the variables from the session to the template.

Return Value

void

void setEmbedded(bool $embedded)

Setter for embedded.

Parameters

bool $embedded

Return Value

void

bool getEmbedded()

Getter for embedded.

Return Value

bool return the embedded value

void setPrint(bool $print)

Setter for print.

Parameters

bool $print

Return Value

void

bool getPrint()

Getter for print.

Return Value

bool return the print value

setDynamicAction($value)

Parameters

$value

bool getDynamicAction()

Return Value

bool