Documentation

Setting extends AbstractEntity
in package

CiviCRM settings api.

Used to read/write persistent setting data from CiviCRM.

Tags
see
SettingsBag
searchable

none

since
5.19

Table of Contents

Methods

__callStatic()  : AbstractAction
Magic method to return the action object for an api.
checkAccess()  : CheckAccessAction
get()  : Get
getActions()  : GetActions
getEntityName()  : string
Get entity name from called class
getFields()  : GetFields
getInfo()  : array{name: string, title: string, description: string, title_plural: string, type: string, paths: array, class: string, primary_key: array, searchable: string, dao: string, label_field: string, icon: string}
Reflection function called by Entity::get()
getLinks()  : GetLinks
permissions()  : array<string|int, mixed>
Returns a list of permissions needed to access the various actions in this api.
revert()  : Revert
set()  : Set
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

getFields()

public static getFields([bool $checkPermissions = TRUE ]) : GetFields
Parameters
$checkPermissions : bool = TRUE
Return values
GetFields

getInfo()

Reflection function called by Entity::get()

public static getInfo() : array{name: string, title: string, description: string, title_plural: string, type: string, paths: array, class: string, primary_key: array, searchable: string, dao: string, label_field: string, icon: string}
Tags
see
Get
Return values
array{name: string, title: string, description: string, title_plural: string, type: string, paths: array, class: string, primary_key: array, searchable: string, dao: string, label_field: string, icon: string}
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>

revert()

public static revert([bool $checkPermissions = TRUE ]) : Revert
Parameters
$checkPermissions : bool = TRUE
Return values
Revert

set()

public static set([bool $checkPermissions = TRUE ]) : Set
Parameters
$checkPermissions : bool = TRUE
Return values
Set

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