Afform
extends AbstractEntity
in package
User-configurable forms.
Afform stands for The Affable Administrative Angular Form Framework.
This API provides actions for
-
Managing forms:
The
create
,get
,save
,update
, &revert
actions read/write form html & json files. -
Using forms:
The
prefill
andsubmit
actions are used for preparing forms and processing submissions.
Tags
Table of Contents
Methods
- __callStatic() : AbstractAction
- Magic method to return the action object for an api.
- autocomplete() : AutocompleteAction
- checkAccess() : CheckAccessAction
- convert() : Convert
- create() : Create
- get() : Get
- getActions() : GetActions
- getEntityName() : string
- Get entity name from called class
- getFields() : BasicGetFieldsAction
- 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
- getOptions() : GetOptions
- permissions() : array<string|int, mixed>
- Returns a list of permissions needed to access the various actions in this api.
- prefill() : Prefill
- process() : Process
- revert() : Revert
- save() : Save
- submit() : Submit
- submitFile() : SubmitFile
- update() : Update
- getDaoName() : CRM_Core_DAO|string|null
- getEntityTitle() : string
- Overridable function to return a localized title for this entity.
Methods
__callStatic()
Magic method to return the action object for an api.
public
static __callStatic(string $action, array<string|int, mixed> $args) : AbstractAction
Parameters
- $action : string
- $args : array<string|int, mixed>
Tags
Return values
AbstractActionautocomplete()
public
static autocomplete([bool $checkPermissions = TRUE ]) : AutocompleteAction
Parameters
- $checkPermissions : bool = TRUE
Return values
AutocompleteActioncheckAccess()
public
static checkAccess() : CheckAccessAction
Return values
CheckAccessActionconvert()
public
static convert([bool $checkPermissions = TRUE ]) : Convert
Parameters
- $checkPermissions : bool = TRUE
Return values
Convertcreate()
public
static create([bool $checkPermissions = TRUE ]) : Create
Parameters
- $checkPermissions : bool = TRUE
Return values
Createget()
public
static get([bool $checkPermissions = TRUE ]) : Get
Parameters
- $checkPermissions : bool = TRUE
Return values
GetgetActions()
public
static getActions([bool $checkPermissions = TRUE ]) : GetActions
Parameters
- $checkPermissions : bool = TRUE
Return values
GetActionsgetEntityName()
Get entity name from called class
public
static getEntityName() : string
Return values
stringgetFields()
public
static getFields([bool $checkPermissions = TRUE ]) : BasicGetFieldsAction
Parameters
- $checkPermissions : bool = TRUE
Return values
BasicGetFieldsActiongetInfo()
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
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}getLinks()
public
static getLinks([bool $checkPermissions = TRUE ]) : GetLinks
Parameters
- $checkPermissions : bool = TRUE
Return values
GetLinksgetOptions()
public
static getOptions([bool $checkPermissions = TRUE ]) : GetOptions
Parameters
- $checkPermissions : bool = TRUE
Return values
GetOptionspermissions()
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>prefill()
public
static prefill([bool $checkPermissions = TRUE ]) : Prefill
Parameters
- $checkPermissions : bool = TRUE
Return values
Prefillprocess()
public
static process([bool $checkPermissions = TRUE ]) : Process
Parameters
- $checkPermissions : bool = TRUE
Return values
Processrevert()
public
static revert([bool $checkPermissions = TRUE ]) : Revert
Parameters
- $checkPermissions : bool = TRUE
Return values
Revertsave()
public
static save([bool $checkPermissions = TRUE ]) : Save
Parameters
- $checkPermissions : bool = TRUE
Return values
Savesubmit()
public
static submit([bool $checkPermissions = TRUE ]) : Submit
Parameters
- $checkPermissions : bool = TRUE
Return values
SubmitsubmitFile()
public
static submitFile([bool $checkPermissions = TRUE ]) : SubmitFile
Parameters
- $checkPermissions : bool = TRUE
Return values
SubmitFileupdate()
public
static update([bool $checkPermissions = TRUE ]) : Update
Parameters
- $checkPermissions : bool = TRUE
Return values
UpdategetDaoName()
protected
static getDaoName() : CRM_Core_DAO|string|null
Return values
CRM_Core_DAO|string|nullgetEntityTitle()
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.