<?php
-
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
namespace Civi\Api4;
/**
* It may be poorly suited to recursive usage (e.g. permissions defined dynamically
* on top of permissions!) or during install/uninstall processes.
*
- * @searchable false
+ * @searchable none
+ * @since 5.34
* @package Civi\Api4
*/
class Permission extends Generic\AbstractEntity {
/**
* @param bool $checkPermissions
- * @return \Civi\Api4\Generic\BasicGetAction
+ * @return Action\Permission\Get
*/
public static function get($checkPermissions = TRUE) {
- return (new \Civi\Api4\Action\Permission\Get(__CLASS__, __FUNCTION__))->setCheckPermissions($checkPermissions);
+ return (new Action\Permission\Get(__CLASS__, __FUNCTION__))
+ ->setCheckPermissions($checkPermissions);
}
/**
[
'name' => 'group',
'title' => 'Group',
- 'required' => TRUE,
'data_type' => 'String',
],
[
'name' => 'name',
'title' => 'Name',
- 'required' => TRUE,
'data_type' => 'String',
],
[
'name' => 'title',
'title' => 'Title',
- 'required' => TRUE,
'data_type' => 'String',
],
[
'name' => 'description',
'title' => 'Description',
- 'required' => FALSE,
'data_type' => 'String',
],
[
'name' => 'is_synthetic',
'title' => 'Is Synthetic',
- 'required' => FALSE,
'data_type' => 'Boolean',
],
[
'title' => 'Is Active',
'description' => '',
'default' => TRUE,
- 'required' => FALSE,
'data_type' => 'Boolean',
],
];