Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onContentAfterSave ($context, $article, $isNew) | |
onContentBeforeSave ($context, $article, $isNew) | |
onContentAfterDelete ($context, $article) | |
onContentChangeState ($context, $pks, $value) | |
onCategoryChangeState ($extension, $pks, $value) | |
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 () | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Smart Search Content Plugin
onCategoryChangeState | ( | $extension, | |
$pks, | |||
$value | |||
) |
Smart Search change category state content method. Method is called when the state of the category to which the content item belongs is changed.
string | $extension | The extension whose category has been updated. |
array | $pks | A list of primary key ids of the content that has changed state. |
integer | $value | The value of the state that the content has been changed to. |
Références $extension, et $value.
onContentAfterDelete | ( | $context, | |
$article | |||
) |
onContentAfterSave | ( | $context, | |
$article, | |||
$isNew | |||
) |
Smart Search after save content method. Content is passed by reference, but after the save, so no changes will be saved. Method is called right after the content is saved.
string | $context | The context of the content passed to the plugin (added in 1.6) |
object | $article | A JTableContent object |
bool | $isNew | If the content has just been created |
onContentBeforeSave | ( | $context, | |
$article, | |||
$isNew | |||
) |
Smart Search before save content method. Content is passed by reference. Method is called before the content is saved.
string | $context | The context of the content passed to the plugin (added in 1.6). |
object | $article | A JTableContent object. |
bool | $isNew | If the content is just about to be created. |
onContentChangeState | ( | $context, | |
$pks, | |||
$value | |||
) |
Smart Search content state change method. Method to update the link information for items that have been changed from outside the edit screen. This is fired when the item is published, unpublished, archived, or unarchived from the list view.
string | $context | The context for the content passed to the plugin. |
array | $pks | A list of primary key ids of the content that has changed state. |
integer | $value | The value of the state that the content has been changed to. |