cdb0ef6f7a89c1b868d7f9cc58ffacd5640f5aa5
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
23 * Retrieves information about all Api4 entities.
25 * @see \Civi\Api4\Generic\AbstractEntity
29 class Entity
extends Generic\AbstractEntity
{
32 * @param bool $checkPermissions
33 * @return Action\Entity\Get
35 public static function get($checkPermissions = TRUE) {
36 return (new Action\Entity\
Get('Entity', __FUNCTION__
))
37 ->setCheckPermissions($checkPermissions);
41 * @param bool $checkPermissions
42 * @return Generic\BasicGetFieldsAction
44 public static function getFields($checkPermissions = TRUE) {
45 return (new Generic\
BasicGetFieldsAction('Entity', __FUNCTION__
, function() {
49 'description' => 'Entity name',
53 'description' => 'Localized title',
56 'name' => 'description',
57 'description' => 'Description from docblock',
61 'description' => 'Comments from docblock',
65 'description' => 'crm-i icon class associated with this entity',
69 'description' => 'Class name for dao-based entities',
73 'data_type' => 'Array',
74 'description' => 'Any @see annotations from docblock',
77 }))->setCheckPermissions($checkPermissions);
81 * @param bool $checkPermissions
82 * @return Action\Entity\GetLinks
84 public static function getLinks($checkPermissions = TRUE) {
85 return (new Action\Entity\
GetLinks('Entity', __FUNCTION__
))
86 ->setCheckPermissions($checkPermissions);
92 public static function permissions() {
94 'default' => ['access CiviCRM'],