class CRM_Contact_Form_Search_Custom_FullText extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface

Constants

LIMIT

Properties

protected $_formValues
protected $_columns
protected $_stateID from CRM_Contact_Form_Search_Custom_Base
protected CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery[] $_partialQueries
protected $_text
protected $_table
protected $_tableName
protected $_entityIDTableName
protected $_tableFields
protected array|null $_limitClause Limit clause.
protected array|null $_limitRowClause Limit row clause.
protected array|null $_limitDetailClause Limit detail clause.
protected $_limitNumber
protected int $_limitNumberPlus1 This should be one more than self::LIMIT.
protected $_foundRows

Methods

__construct(array $formValues)

Class constructor.

array
buildTaskList(CRM_Core_Form_Search $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 = 0, int $rowcount = 0, null $sort = NULL, bool $returnSQL = FALSE)

No description

string
sql($selectClause, int $offset = 0, int $rowcount = 0, 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)

No description

array
formRule(array $fields, array $files, CRM_Core_Form $self)

Validate form input.

mixed|null
getFieldValue($formValues, $field, $type, null $default = NULL)

Get a value from $formValues. If missing, get it from the request.

__destruct()

No description

initialize()

No description

buildTempTable()

No description

fillTable()

No description

filterACLContacts()

No description

buildForm(CRM_Core_Form $form)

No description

all(int $offset = 0, int $rowcount = 0, null $sort = NULL, bool $includeContactIDs = FALSE, bool $justIDs = FALSE)

No description

from()

No description

where(bool $includeContactIDs = FALSE)

No description

array
setDefaultValues()

No description

alterRow($row)

No description

string
toLimit(int|array $limit)

No description

Details

at line 99
__construct(array $formValues)

Class constructor.

Parameters

array $formValues

array buildTaskList(CRM_Core_Form_Search $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

CRM_Core_Form_Search $form

Return Value

array

at line 445
null|string count()

Return Value

null|string

at line 378
null summary()

Return Value

null

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

Parameters

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

Return Value

string

string sql($selectClause, int $offset = 0, int $rowcount = 0, 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 524
null templateFile()

Return Value

null

at line 366
columns()

static includeContactIDs($sql, $formValues)

Parameters

$sql
$formValues

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

Parameters

$sql
$offset
$rowcount
$sort

validateUserSQL($sql, bool $onlyWhere = FALSE)

Parameters

$sql
bool $onlyWhere

Exceptions

Exception

string whereClause($where, array $params)

Parameters

$where
array $params

Return Value

string

null getQueryObj()

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

Return Value

null

at line 544
setTitle(string $title)

Parameters

string $title

array formRule(array $fields, array $files, CRM_Core_Form $self)

Validate form input.

Parameters

array $fields
array $files
CRM_Core_Form $self

Return Value

array Input errors from the form.

at line 144
mixed|null getFieldValue($formValues, $field, $type, null $default = NULL)

Get a value from $formValues. If missing, get it from the request.

Parameters

$formValues
$field
$type
null $default

Return Value

mixed|null

at line 152
__destruct()

at line 155
initialize()

at line 167
buildTempTable()

at line 249
fillTable()

at line 263
filterACLContacts()

at line 312
buildForm(CRM_Core_Form $form)

Parameters

CRM_Core_Form $form

at line 484
all(int $offset = 0, int $rowcount = 0, null $sort = NULL, bool $includeContactIDs = FALSE, bool $justIDs = FALSE)

Parameters

int $offset
int $rowcount
null $sort
bool $includeContactIDs
bool $justIDs

at line 508
from()

at line 517
where(bool $includeContactIDs = FALSE)

Parameters

bool $includeContactIDs

at line 531
array setDefaultValues()

Return Value

array

at line 538
alterRow($row)

Parameters

$row

at line 556
string toLimit(int|array $limit)

Parameters

int|array $limit

Return Value

string SQL

See also

CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery::toLimit