Documentation

CRM_Activity_BAO_Query
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Methods

buildSearchForm()  : mixed
Add all the elements shared between case activity search and advanced search.
defaultReturnProperties()  : array<string|int, mixed>|null
from()  : null|string
getSearchFieldMetadata()  : mixed
Get the metadata for fields to be included on the activity search form.
select()  : mixed
Build select for Case.
selectorReturnProperties()  : mixed
Get the list of fields required to populate the selector.
where()  : mixed
Given a list of conditions in query generate the required where clause.
whereClauseSingle()  : mixed
Where clause for a single field.
whereClauseSingleActivityText()  : mixed
Where/qill clause for notes

Methods

defaultReturnProperties()

public static defaultReturnProperties(mixed $mode[, bool $includeCustomFields = TRUE ]) : array<string|int, mixed>|null
Parameters
$mode : mixed
$includeCustomFields : bool = TRUE
Return values
array<string|int, mixed>|null

from()

public static from(string $name, int $mode, string $side[, int $onlyDeleted = 0 ]) : null|string
Parameters
$name : string
$mode : int
$side : string
$onlyDeleted : int = 0
Return values
null|string

getSearchFieldMetadata()

Get the metadata for fields to be included on the activity search form.

public static getSearchFieldMetadata() : mixed
Tags
throws
CRM_Core_Exception
todo

ideally this would be a trait included on the activity search & advanced search rather than a static function.

selectorReturnProperties()

Get the list of fields required to populate the selector.

public static selectorReturnProperties() : mixed

The default return properties array returns far too many fields for 'everyday use. Every field you add to this array kills a small kitten so add carefully.


        
On this page

Search results