Documentation

ReportInstance extends DAOEntity
in package
uses ManagedEntity

ReportInstance entity.

Tags
searchable

secondary

since
5.58

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()  : DAOGetAction
getActions()  : GetActions
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
permissions()  : array<string|int, array<string|int, mixed>>
Specify the permissions to access ReportInstance.
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

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
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()

Specify the permissions to access ReportInstance.

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

Function exists to set the get permission on report instance get to access CiviCRM.

This allows the permission configured on the report to be implemented in the selectWhere hook.

Note this might be better as TRUE rather than access CiviCRM but the latter feels safer given we are deprecating civi-report and should err on the side of stricter security.

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