Documentation

Campaign extends DAOEntity
in package
uses ManagedEntity, HierarchicalEntity

Campaign entity.

Tags
see
https://docs.civicrm.org/user/en/latest/campaign/what-is-civicampaign/
searchable

secondary

since
5.19

Table of Contents

Methods

__callStatic()  : AbstractAction
Magic method to return the action object for an api.
autocomplete()  : AutocompleteAction
checkAccess()  : CheckAccessAction
create()  : DAOCreateAction
delete()  : DAODeleteAction
export()  : ExportAction
get()  : Get
getActions()  : GetActions
getEntityName()  : string
Get entity name from called class
getFields()  : DAOGetFieldsAction
getInfo()  : array<string|int, mixed>
Automatically adds "parent_field" info, if it hasn't already been declared via `@parentField` annotation.
getLinks()  : GetLinks
permissions()  : array<string|int, mixed>
Returns a list of permissions needed to access the various actions in this api.
replace()  : BasicReplaceAction
revert()  : BasicBatchAction
save()  : DAOSaveAction
update()  : DAOUpdateAction
getDaoName()  : CRM_Core_DAO|string|null
getEntityTitle()  : string
Overridable function to return a localized title for this entity.

Methods

get()

public static get([bool $checkPermissions = true ]) : Get
Parameters
$checkPermissions : bool = true
Return values
Get

getEntityName()

Get entity name from called class

public static getEntityName() : string
Return values
string

getInfo()

Automatically adds "parent_field" info, if it hasn't already been declared via `@parentField` annotation.

public static getInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>
public static getLinks([bool $checkPermissions = true ]) : GetLinks
Parameters
$checkPermissions : bool = true
Return values
GetLinks

permissions()

Returns a list of permissions needed to access the various actions in this api.

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

getEntityTitle()

Overridable function to return a localized title for this entity.

protected static getEntityTitle([bool $plural = false ]) : string
Parameters
$plural : bool = false

Whether to return a plural title.

Return values
string

        
On this page

Search results