class CRM_Contact_Form_Search_Custom_Base

Properties

protected $_formValues
protected $_columns
protected $_stateID

Methods

__construct(array $formValues)

Class constructor.

array
buildTaskList( $form)

Builds the list of tasks or actions that a searcher can perform on a result set.

null|string
count()

No description

null
summary()

No description

string
contactIDs(int $offset, int $rowcount, null $sort = NULL, bool $returnSQL = FALSE)

No description

string
sql($selectClause, int $offset, int $rowcount, null $sort = NULL, bool $includeContactIDs = FALSE, null $groupBy = NULL)

No description

null
templateFile()

No description

columns()

No description

static 
includeContactIDs($sql, $formValues)

No description

addSortOffset($sql, $offset, $rowcount, $sort)

No description

validateUserSQL($sql, bool $onlyWhere = FALSE)

No description

string
whereClause($where, array $params)

No description

null
getQueryObj()

override this method to define the contact query object used for creating $sql

setTitle(string $title)

Set the title.

Details

at line 46
__construct(array $formValues)

Class constructor.

Parameters

array $formValues

at line 59
array buildTaskList( $form)

Builds the list of tasks or actions that a searcher can perform on a result set.

The returned array completely replaces the task list, so a child class that wants to modify the existing list should manipulate the result of this method.

Parameters

$form

Return Value

array

at line 66
null|string count()

Return Value

null|string

at line 73
null summary()

Return Value

null

at line 85
string contactIDs(int $offset, int $rowcount, null $sort = NULL, bool $returnSQL = FALSE)

Parameters

int $offset
int $rowcount
null $sort
bool $returnSQL

Return Value

string

at line 111
string sql($selectClause, int $offset, int $rowcount, null $sort = NULL, bool $includeContactIDs = FALSE, null $groupBy = NULL)

Parameters

$selectClause
int $offset
int $rowcount
null $sort
bool $includeContactIDs
null $groupBy

Return Value

string

at line 143
null templateFile()

Return Value

null

at line 147
columns()

at line 155
static includeContactIDs($sql, $formValues)

Parameters

$sql
$formValues

at line 177
addSortOffset($sql, $offset, $rowcount, $sort)

Parameters

$sql
$offset
$rowcount
$sort

at line 202
validateUserSQL($sql, bool $onlyWhere = FALSE)

Parameters

$sql
bool $onlyWhere

Exceptions

Exception

at line 233
string whereClause($where, array $params)

Parameters

$where
array $params

Return Value

string

at line 242
null getQueryObj()

override this method to define the contact query object used for creating $sql

Return Value

null

at line 251
setTitle(string $title)

Set the title.

Parameters

string $title