Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Joomla\CMS\Workflow

Structures de données

class  Workflow
 
interface  WorkflowServiceInterface
 

Fonctions

 supportFunctionality ($functionality, $context)
 
 isFunctionalityUsed ($functionality, $extension)
 
 getModelName ($context)
 
static getConditions (string $extension)
 
 isWorkflowActive ($context)
 

Variables

trait WorkflowServiceTrait
 

Description détaillée

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Documentation des fonctions

◆ getConditions()

static Joomla\CMS\Workflow\getConditions ( string  $extension)
static

Returns an array of possible conditions for the component.

Paramètres
string$extensionThe component and section separated by ".".
Renvoie
array
Depuis
4.0.0

Références Workflow\CONDITION_NAMES.

◆ getModelName()

Joomla\CMS\Workflow\getModelName (   $context)

Returns the model name, based on the context

Paramètres
string$contextThe context of the workflow
Renvoie
boolean
Depuis
4.0.0

Références $context, et $parts.

Référencé par Joomla\CMS\Workflow\isWorkflowActive().

◆ isFunctionalityUsed()

Joomla\CMS\Workflow\isFunctionalityUsed (   $functionality,
  $extension 
)

Check if the functionality is used by a plugin

Paramètres
string$functionalityThe functionality
string$extensionThe extension
Renvoie
boolean
Exceptions

Références $app, $extension, $this, AbstractEvent\create(), et Factory\getApplication().

◆ isWorkflowActive()

Joomla\CMS\Workflow\isWorkflowActive (   $context)

Check if the workflow is active

Paramètres
string$contextThe context of the workflow
Renvoie
boolean

Références $component, $config, $context, $model, $parts, Factory\getApplication(), Joomla\CMS\Workflow\getModelName(), Joomla\CMS\MVC\Factory\getMVCFactory(), et ComponentHelper\getParams().

◆ supportFunctionality()

Joomla\CMS\Workflow\supportFunctionality (   $functionality,
  $context 
)

Check if the functionality is supported by the component The variable $supportFunctionality has the following structure [ 'core.featured' => [ 'com_content.article', ], 'core.state' => [ 'com_content.article', ], ]

Paramètres
string$functionalityThe functionality
string$contextThe context of the functionality
Renvoie
boolean

Références $context.

Référencé par PlgWorkflowFeaturing\isSupported(), et PlgWorkflowPublishing\isSupported().

Documentation des variables

◆ WorkflowServiceTrait

trait WorkflowServiceTrait
Valeur initiale :
{
abstract public function getMVCFactory(): MVCFactoryInterface
getMVCFactory()
Definition: MVCFactoryAwareTrait.php:39

Trait for component workflow service.

Depuis
4.0.0