Documentation

Organization extends Contact
in package

Contacts of type Organization.

This api is a facade for the Contact entity. In most ways it acts exactly like the Contact entity, plus it injects [contact_type => Organization] into get, create, and batch actions (however, when updating or deleting a single Contact by id, this will transparently pass-through to the Contact entity, so don't rely on this facade to enforce contact type for single-record-by-id write operations).

Tags
inheritDoc
since
5.67

Table of Contents

Methods

__callStatic()  : AbstractAction
Magic method to return the action object for an api.
autocomplete()  : AutocompleteAction
checkAccess()  : CheckAccessAction
create()  : Create
delete()  : Delete
get()  : DAOGetAction
getActions()  : GetActions
getChecksum()  : GetChecksum
getDuplicates()  : GetDuplicates
getEntityName()  : string
Get entity name from called class
getFields()  : DAOGetFieldsAction
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
mergeDuplicates()  : MergeDuplicates
permissions()  : array<string|int, mixed>
Returns a list of permissions needed to access the various actions in this api.
replace()  : BasicReplaceAction
save()  : Save
update()  : Update
validateChecksum()  : ValidateChecksum
getDaoName()  : CRM_Core_DAO|string|null
getEntityTitle()  : string
Overridable function to return a localized title for this entity.

Methods

create()

public static create([bool $checkPermissions = TRUE ]) : Create
Parameters
$checkPermissions : bool = TRUE
Return values
Create

delete()

public static delete([bool $checkPermissions = TRUE ]) : Delete
Parameters
$checkPermissions : bool = TRUE
Return values
Delete

getChecksum()

public static getChecksum([bool $checkPermissions = TRUE ]) : GetChecksum
Parameters
$checkPermissions : bool = TRUE
Return values
GetChecksum

getEntityName()

Get entity name from called class

public static getEntityName() : string
Return values
string

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
inheritDoc
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>
Tags
inheritDoc
Return values
array<string|int, mixed>

save()

public static save([bool $checkPermissions = TRUE ]) : Save
Parameters
$checkPermissions : bool = TRUE
Return values
Save

update()

public static update([bool $checkPermissions = TRUE ]) : Update
Parameters
$checkPermissions : bool = TRUE
Return values
Update

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