Documentation

CRM_Campaign_BAO_Query
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Constants

CIVICRM_ACTIVITY  = 'civicrm_survey_activity'
CIVICRM_ACTIVITY_ASSIGNMENT  = 'civicrm_survey_activity_assignment'
CIVICRM_ACTIVITY_TARGET  = 'civicrm_survey_activity_target'

Properties

$_applySurveyClause  : mixed
$_campaignFields  : array<string|int, mixed>
Static field for all the campaign fields.

Methods

buildSearchForm()  : mixed
Add all the elements shared between, normal voter search and voter listing (GOTV form)
defaultReturnProperties()  : array<string|int, mixed>|null
from()  : null|string
getFields()  : array<string|int, mixed>
Function get the fields for campaign.
info()  : mixed
searchAction()  : mixed
select()  : mixed
If survey, campaign are involved, add the specific fields.
tableNames()  : mixed
voterClause()  : array<string|int, mixed>
where()  : mixed
whereClauseSingle()  : mixed

Constants

CIVICRM_ACTIVITY

public mixed CIVICRM_ACTIVITY = 'civicrm_survey_activity'

CIVICRM_ACTIVITY_ASSIGNMENT

public mixed CIVICRM_ACTIVITY_ASSIGNMENT = 'civicrm_survey_activity_assignment'

CIVICRM_ACTIVITY_TARGET

public mixed CIVICRM_ACTIVITY_TARGET = 'civicrm_survey_activity_target'

Properties

$_applySurveyClause

public static mixed $_applySurveyClause = \FALSE

$_campaignFields

Static field for all the campaign fields.

public static array<string|int, mixed> $_campaignFields = \NULL

Methods

buildSearchForm()

Add all the elements shared between, normal voter search and voter listing (GOTV form)

public static buildSearchForm(CRM_Core_Form &$form) : mixed
Parameters
$form : CRM_Core_Form

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, mixed $mode, mixed $side) : null|string
Parameters
$name : string
$mode : mixed
$side : mixed
Return values
null|string

getFields()

Function get the fields for campaign.

public static & getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

self::$_campaignFields an associative array of campaign fields

info()

public static info(mixed &$tables) : mixed
Parameters
$tables : mixed

searchAction()

public static searchAction(mixed &$row, int $id) : mixed
Parameters
$row : mixed
$id : int

tableNames()

public static tableNames(mixed &$tables) : mixed
Parameters
$tables : mixed

voterClause()

public static voterClause(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>
Return values
array<string|int, mixed>

where()

public static where(mixed &$query) : mixed
Parameters
$query : mixed

whereClauseSingle()

public static whereClauseSingle(mixed &$values, mixed &$query) : mixed
Parameters
$values : mixed
$query : mixed

        
On this page

Search results