| 1 | <?php |
| 2 | /* |
| 3 | +--------------------------------------------------------------------+ |
| 4 | | Copyright CiviCRM LLC. All rights reserved. | |
| 5 | | | |
| 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 | |
| 9 | +--------------------------------------------------------------------+ |
| 10 | */ |
| 11 | namespace Civi\Api4; |
| 12 | |
| 13 | /** |
| 14 | * Event entity. |
| 15 | * |
| 16 | * @see https://docs.civicrm.org/user/en/latest/events/what-is-civievent/ |
| 17 | * |
| 18 | * @searchable primary |
| 19 | * @since 5.19 |
| 20 | * @package Civi\Api4 |
| 21 | */ |
| 22 | class Event extends Generic\DAOEntity { |
| 23 | |
| 24 | /** |
| 25 | * @param bool $checkPermissions |
| 26 | * @return Action\Event\Get |
| 27 | */ |
| 28 | public static function get($checkPermissions = TRUE) { |
| 29 | return (new Action\Event\Get(__CLASS__, __FUNCTION__)) |
| 30 | ->setCheckPermissions($checkPermissions); |
| 31 | } |
| 32 | |
| 33 | } |