Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onContentPrepareForm (EventInterface $event) | |
onAfterDisplay (DisplayEvent $event) | |
onWorkflowBeforeTransition (WorkflowTransitionEvent $event) | |
onWorkflowAfterTransition (WorkflowTransitionEvent $event) | |
onContentBeforeChangeState (EventInterface $event) | |
onContentVersioningPrepareTable (EventInterface $event) | |
onTableBeforeStore (BeforeStoreEvent $event) | |
onWorkflowFunctionalityUsed (WorkflowFunctionalityUsedEvent $event) | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Fonctions membres publiques statiques | |
static | getSubscribedEvents () |
Fonctions membres protégées | |
enhanceTransitionForm (Form $form, $data) | |
enhanceItemForm (Form $form, $data) | |
isSupported ($context) | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés | |
$autoloadLanguage = true | |
$app | |
$supportFunctionality = 'core.state' | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Workflow Publishing Plugin
|
protected |
Disable certain fields in the item form view, when we want to take over this function in the transition Check also for the workflow implementation and if the field exists
Form | $form | The form |
stdClass | $data | The data |
Références $component, $context, $data, $form, $label, $option, $options, $parts, $text, $value, ENT_COMPAT, null, et Text\sprintf().
|
protected |
Add different parameter options to the transition view, we need when executing the transition
Form | $form | The form |
stdClass | $data | The data |
Références $data, $form, et Joomla\CMS\MVC\Model\$workflow.
|
static |
Returns an array of events this subscriber will listen to.
Implémente SubscriberInterface.
|
protected |
Check if the current plugin should execute workflow related activities
string | $context |
Références $component, $context, $model, $parts, TableInterface\hasField(), et Joomla\CMS\Workflow\supportFunctionality().
onAfterDisplay | ( | DisplayEvent | $event | ) |
Manipulate the generic list view
DisplayEvent | $event |
Références $app, $component, $section, Factory\getApplication(), et AbstractEvent\getArgument().
onContentBeforeChangeState | ( | EventInterface | $event | ) |
Change State of an item. Used to disable state change
EventInterface | $event |
Exception |
Références $context, Text\_(), et EventInterface\getArgument().
onContentPrepareForm | ( | EventInterface | $event | ) |
The form event.
EventInterface | $event | The event |
Références $context, $data, $form, et EventInterface\getArgument().
onContentVersioningPrepareTable | ( | EventInterface | $event | ) |
We remove the publishing field from the versioning
EventInterface | $event |
Références $component, $context, $model, $parts, $subject, et EventInterface\getArgument().
onTableBeforeStore | ( | BeforeStoreEvent | $event | ) |
Pre-processor for $table->store($updateNulls)
BeforeStoreEvent | $event | The event to handle |
Références $component, $field, $model, $parts, $subject, et AbstractEvent\getArgument().
onWorkflowAfterTransition | ( | WorkflowTransitionEvent | $event | ) |
Change State of an item. Used to disable state change
WorkflowTransitionEvent | $event |
Références $component, $context, $model, $options, $value, et AbstractEvent\getArgument().
onWorkflowBeforeTransition | ( | WorkflowTransitionEvent | $event | ) |
Check if we can execute the transition
WorkflowTransitionEvent | $event |
Here it becomes tricky. We would like to use the component models publish method, so we will Execute the normal "onContentBeforeChangeState" plugins. But they could cancel the execution, So we have to precheck and cancel the whole transition stuff if not allowed.
Références $context, $result, $value, AbstractEvent\getArgument(), et WorkflowTransitionEvent\setStopTransition().
onWorkflowFunctionalityUsed | ( | WorkflowFunctionalityUsedEvent | $event | ) |
If plugin supports the functionality we set the used variable
WorkflowFunctionalityUsedEvent | $event |
Références AbstractEvent\getArgument(), et WorkflowFunctionalityUsedEvent\setUsed().
|
protected |
|
protected |
|
protected |