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) | |
onContentBeforeChangeFeatured (FeatureEvent $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 | |
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.featured' | |
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 Featuring 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, et null.
|
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, et AbstractEvent\getArgument().
onContentBeforeChangeFeatured | ( | FeatureEvent | $event | ) |
Change Feature State of an item. Used to disable Feature state change
FeatureEvent | $event |
Exception |
Références $extension, AbstractEvent\getArgument(), et FeatureEvent\setAbort().
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 featured 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 Feature State of an item. Used to disable feature 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 featured method, so we will Execute the normal "onContentBeforeChangeFeatured" 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, $this, $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 |