3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class contains user jobs functionality.
21 class CRM_Core_BAO_UserJob
extends CRM_Core_DAO_UserJob
{
24 * Get the statuses for Import Jobs.
28 public static function getStatuses(): array {
32 'name' => 'completed',
33 'label' => ts('Completed'),
37 'name' => 'scheduled',
38 'label' => ts('Scheduled'),
42 'name' => 'in_progress',
43 'label' => ts('In Progress'),
49 * Get the types Import Jobs.
51 * This is largely a placeholder at this stage. It will likely wind
52 * up as an option value so extensions can add different types.
54 * However, for now it just holds the one type being worked on.
58 public static function getTypes(): array {
62 'name' => 'contact_import',
63 'label' => ts('Contact Import'),