APIv4 - Allow creator to read `UserJob` and `Queue` records
[civicrm-core.git] / Civi / Api4 / Campaign.php
CommitLineData
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
11namespace Civi\Api4;
12
13/**
14 * Campaign entity.
15 *
0493ec47 16 * @see https://docs.civicrm.org/user/en/latest/campaign/what-is-civicampaign/
aa998597 17 * @searchable secondary
d44cc3cb 18 * @since 5.19
19b53e5b
C
19 * @package Civi\Api4
20 */
21class Campaign extends Generic\DAOEntity {
22
23 /**
6764a9d3
CW
24 * @param bool $checkPermissions
25 * @return Action\Campaign\Get
19b53e5b 26 */
6764a9d3
CW
27 public static function get($checkPermissions = TRUE) {
28 return (new Action\Campaign\Get(__CLASS__, __FUNCTION__))
29 ->setCheckPermissions($checkPermissions);
19b53e5b
C
30 }
31
32}