Commit | Line | Data |
---|---|---|
19b53e5b | 1 | <?php |
380f3545 TO |
2 | /* |
3 | +--------------------------------------------------------------------+ | |
41498ac5 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 5 | | | |
41498ac5 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
380f3545 TO |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
19b53e5b C |
11 | namespace Civi\Api4; |
12 | ||
13 | /** | |
14 | * Event entity. | |
15 | * | |
0493ec47 CW |
16 | * @see https://docs.civicrm.org/user/en/latest/events/what-is-civievent/ |
17 | * | |
aa998597 | 18 | * @searchable primary |
d44cc3cb | 19 | * @since 5.19 |
19b53e5b C |
20 | * @package Civi\Api4 |
21 | */ | |
22 | class Event extends Generic\DAOEntity { | |
23 | ||
24 | /** | |
6764a9d3 CW |
25 | * @param bool $checkPermissions |
26 | * @return Action\Event\Get | |
19b53e5b | 27 | */ |
6764a9d3 CW |
28 | public static function get($checkPermissions = TRUE) { |
29 | return (new Action\Event\Get(__CLASS__, __FUNCTION__)) | |
30 | ->setCheckPermissions($checkPermissions); | |
19b53e5b C |
31 | } |
32 | ||
33 | } |