DAOActionTrait
trait DAOActionTrait
Properties
protected string | $language | Specify the language to use if this is a multi-lingual environment. |
Methods
CRM_Core_DAO|string
getBaoName()
No description
static array
baoToArray(object $bao)
Extract the true fields from a BAO
array|int
getObjects()
No description
fillDefaults(array $params)
Fill field defaults which were declared by the api.
array
writeObjects(array $items)
Write bao objects as part of a create/update action.
mixed
formatCustomParams(array $params, int $entityId)
No description
checkContactPermissions($baoName, $item)
Check edit/delete permissions for contacts and related entities.
string
getLanguage()
No description
setLanguage(string $language)
No description
Details
at line 61
protected CRM_Core_DAO|string
getBaoName()
at line 73
static array
baoToArray(object $bao)
Extract the true fields from a BAO
(Used by create and update actions)
at line 88
protected array|int
getObjects()
at line 109
protected
fillDefaults(array $params)
Fill field defaults which were declared by the api.
Note: default values from core are ignored because the BAO or database layer will supply them.
at line 131
protected array
writeObjects(array $items)
Write bao objects as part of a create/update action.
at line 214
protected mixed
formatCustomParams(array $params, int $entityId)
at line 280
protected
checkContactPermissions($baoName, $item)
Check edit/delete permissions for contacts and related entities.