Commit | Line | Data |
---|---|---|
d76345c9 TO |
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 | * Track a list of durable/scannable queues. | |
15 | * | |
16 | * Registering a queue in this table (and setting `is_auto=1`) can | |
17 | * allow it to execute tasks automatically in the background. | |
18 | * | |
19 | * @searchable none | |
20 | * @since 5.47 | |
21 | * @package Civi\Api4 | |
22 | */ | |
23 | class Queue extends \Civi\Api4\Generic\DAOEntity { | |
24 | ||
a52de7c7 TO |
25 | use Generic\Traits\ManagedEntity; |
26 | ||
d76345c9 TO |
27 | /** |
28 | * @return array | |
29 | */ | |
30 | public static function permissions() { | |
31 | return [ | |
32 | 'meta' => ['access CiviCRM'], | |
33 | 'default' => ['administer queues'], | |
34 | ]; | |
35 | } | |
36 | ||
37 | } |