Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
32 lines
766 B
PHP
32 lines
766 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\ProgramBundle\Entity;
|
|
|
|
/**
|
|
* The RACI roles of a task assignment. The order of the cases is the order of the dropdown.
|
|
*/
|
|
enum RaciRole: string
|
|
{
|
|
case Responsible = 'responsible';
|
|
case Accountable = 'accountable';
|
|
case Consulted = 'consulted';
|
|
case Informed = 'informed';
|
|
|
|
public function getLabelKey(): string
|
|
{
|
|
return 'mautic.program.task.raci_role.'.$this->value;
|
|
}
|
|
|
|
public function getLabelClass(): string
|
|
{
|
|
return match ($this) {
|
|
self::Responsible => 'label-success',
|
|
self::Accountable => 'label-primary',
|
|
self::Consulted => 'label-info',
|
|
self::Informed => 'label-default',
|
|
};
|
|
}
|
|
}
|