Commit | Line | Data |
---|---|---|
19b53e5b C |
1 | <?php |
2 | ||
380f3545 TO |
3 | /* |
4 | +--------------------------------------------------------------------+ | |
41498ac5 | 5 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 6 | | | |
41498ac5 TO |
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 | | |
380f3545 TO |
10 | +--------------------------------------------------------------------+ |
11 | */ | |
12 | ||
13 | /** | |
14 | * | |
15 | * @package CRM | |
ca5cec67 | 16 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
380f3545 TO |
17 | */ |
18 | ||
19 | ||
19b53e5b C |
20 | namespace Civi\Api4; |
21 | ||
22 | /** | |
23 | * Event entity. | |
24 | * | |
0493ec47 CW |
25 | * @see https://docs.civicrm.org/user/en/latest/events/what-is-civievent/ |
26 | * | |
aa998597 | 27 | * @searchable primary |
19b53e5b C |
28 | * @package Civi\Api4 |
29 | */ | |
30 | class Event extends Generic\DAOEntity { | |
31 | ||
32 | /** | |
6764a9d3 CW |
33 | * @param bool $checkPermissions |
34 | * @return Action\Event\Get | |
19b53e5b | 35 | */ |
6764a9d3 CW |
36 | public static function get($checkPermissions = TRUE) { |
37 | return (new Action\Event\Get(__CLASS__, __FUNCTION__)) | |
38 | ->setCheckPermissions($checkPermissions); | |
19b53e5b C |
39 | } |
40 | ||
41 | } |