Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List of Joomla Events found in 3.0.3 core via `grep -r "trigger('on" *` and `grep -r "triggerEvent('on" *`
onAfterDispatch
onAfterExecute
onAfterInitialise
onAfterRender
onAfterRespond
onAfterRoute
onAfterSessionStart
onBeforeCompileHead
onBeforeExecute
onBeforeIndex
onBeforeRender
onBeforeRespond
onBuildIndex
onCategoryChangeState
onContentAfterDelete
onContentAfterDisplay
onContentAfterSave
onContentAfterTitle
onContentBeforeDelete
onContentBeforeDisplay
onContentBeforeSave
onContentChangeState
onContentPrepare
onContentPrepareData
onContentPrepareForm
onContentSearch
onContentSearchAreas
onExtensionAfterSave
onExtensionBeforeSave
onExtensionBeforeUninstall
onExtensionBeforeUpdate
onFinderAfterDelete
onFinderAfterSave
onFinderBeforeSave
onFinderCategoryChangeState
onFinderChangeState
onFork
onGetIcons
onPrepareFinderContent
onReceiveSignal
onStartIndex
onSubmitContact
onUserAfterDelete
onUserAfterDeleteGroup
onUserAfterSave
onUserAuthorisation
onUserAuthorisationFailure
onUserBeforeDelete
onUserBeforeDeleteGroup
onUserBeforeSave
onUserLogin
onUserLoginFailure
onUserLogout
onUserLogoutFailure
onValidateContact
Donalds-MacBook-Air:j3 admin$ grep -r "trigger('on" *
administrator/components/com_admin/models/profile.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_admin.profile', $data));
administrator/components/com_categories/models/category.php: $dispatcher->trigger('onCategoryChangeState', array($extension, $pks, $value));
administrator/components/com_finder/controllers/indexer.json.php: JEventDispatcher::getInstance()->trigger('onStartIndex');
administrator/components/com_finder/controllers/indexer.json.php: JEventDispatcher::getInstance()->trigger('onBeforeIndex');
administrator/components/com_finder/controllers/indexer.json.php: JEventDispatcher::getInstance()->trigger('onBuildIndex');
administrator/components/com_finder/helpers/indexer/helper.php: $results = $dispatcher->trigger('onPrepareFinderContent', array(&$item));
administrator/components/com_finder/helpers/indexer/helper.php: $dispatcher->trigger('onContentPrepare', array('com_finder.indexer', &$content, &$params, 0));
administrator/components/com_finder/models/index.php: $result = $dispatcher->trigger('onContentChangeState', array($context, $pks, $value));
administrator/components/com_finder/models/maps.php: $result = $dispatcher->trigger('onContentBeforeDelete', array($context, $table));
administrator/components/com_finder/models/maps.php: $dispatcher->trigger('onContentAfterDelete', array($context, $table));
administrator/components/com_finder/models/maps.php: $result = $dispatcher->trigger('onContentChangeState', array($context, $pks, $value));
administrator/components/com_languages/models/language.php: $result = $dispatcher->trigger('onExtensionBeforeSave', array('com_languages.language', &$table, $isNew));
administrator/components/com_languages/models/language.php: $dispatcher->trigger('onExtensionAfterSave', array('com_languages.language', &$table, $isNew));
administrator/components/com_media/controllers/file.json.php: $result = $dispatcher->trigger('onContentBeforeSave', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/file.json.php: $dispatcher->trigger('onContentAfterSave', array('com_media.file', &$object_file, true));
administrator/components/com_media/controllers/file.php: $result = $dispatcher->trigger('onContentBeforeSave', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/file.php: $dispatcher->trigger('onContentAfterSave', array('com_media.file', &$object_file, true));
administrator/components/com_media/controllers/file.php: $result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/file.php: $dispatcher->trigger('onContentAfterDelete', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/file.php: $result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.folder', &$object_file));
administrator/components/com_media/controllers/file.php: $dispatcher->trigger('onContentAfterDelete', array('com_media.folder', &$object_file));
administrator/components/com_media/controllers/folder.php: $result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/folder.php: $dispatcher->trigger('onContentAfterDelete', array('com_media.file', &$object_file));
administrator/components/com_media/controllers/folder.php: $result = $dispatcher->trigger('onContentBeforeDelete', array('com_media.folder', &$object_file));
administrator/components/com_media/controllers/folder.php: $dispatcher->trigger('onContentAfterDelete', array('com_media.folder', &$object_file));
administrator/components/com_media/controllers/folder.php: $result = $dispatcher->trigger('onContentBeforeSave', array('com_media.folder', &$object_file));
administrator/components/com_media/controllers/folder.php: $dispatcher->trigger('onContentAfterSave', array('com_media.folder', &$object_file, true));
administrator/components/com_media/views/imageslist/tmpl/default_image.php:$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_media/views/imageslist/tmpl/default_image.php:$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_media/views/medialist/tmpl/details_doc.php:$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
administrator/components/com_media/views/medialist/tmpl/details_doc.php:$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
administrator/components/com_media/views/medialist/tmpl/details_img.php:$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_media/views/medialist/tmpl/details_img.php:$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_media/views/medialist/tmpl/thumbs_doc.php:$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
administrator/components/com_media/views/medialist/tmpl/thumbs_doc.php:$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
administrator/components/com_media/views/medialist/tmpl/thumbs_img.php:$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_media/views/medialist/tmpl/thumbs_img.php:$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_img, &$params));
administrator/components/com_modules/models/module.php: $result = $dispatcher->trigger('onExtensionBeforeSave', array('com_modules.module', &$table, $isNew));
administrator/components/com_modules/models/module.php: $dispatcher->trigger('onExtensionAfterSave', array('com_modules.module', &$table, $isNew));
administrator/components/com_templates/models/source.php: $result = $dispatcher->trigger('onExtensionBeforeSave', array('com_templates.source', &$data, false));
administrator/components/com_templates/models/source.php: $dispatcher->trigger('onExtensionAfterSave', array('com_templates.source', &$table, false));
administrator/components/com_templates/models/style.php: $result = $dispatcher->trigger('onExtensionBeforeSave', array('com_templates.style', &$table, $isNew));
administrator/components/com_templates/models/style.php: $dispatcher->trigger('onExtensionAfterSave', array('com_templates.style', &$table, $isNew));
administrator/components/com_users/models/group.php: $dispatcher->trigger('onUserBeforeDeleteGroup', array($table->getProperties()));
administrator/components/com_users/models/group.php: $dispatcher->trigger('onUserAfterDeleteGroup', array($table->getProperties(), true, $this->getError()));
administrator/components/com_users/models/note.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_users.note', $result));
administrator/components/com_users/models/user.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_users.user', $result));
administrator/components/com_users/models/user.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $data));
administrator/components/com_users/models/user.php: $dispatcher->trigger('onUserBeforeDelete', array($table->getProperties()));
administrator/components/com_users/models/user.php: $dispatcher->trigger('onUserAfterDelete', array($user_to_delete->getProperties(), true, $this->getError()));
administrator/components/com_users/models/user.php: $result = $dispatcher->trigger('onUserBeforeSave', array($old, false, $table->getProperties()));
administrator/components/com_users/models/user.php: $dispatcher->trigger('onUserAfterSave', array($table->getProperties(), false, true, null));
administrator/components/com_users/models/user.php: $result = $dispatcher->trigger('onUserBeforeSave', array($old, false, $table->getProperties()));
administrator/components/com_users/models/user.php: $dispatcher->trigger('onUserAfterSave', array($table->getProperties(), false, true, null));
cli/finder_indexer.php: JEventDispatcher::getInstance()->trigger('onStartIndex');
cli/finder_indexer.php: JEventDispatcher::getInstance()->trigger('onBeforeIndex');
cli/finder_indexer.php: JEventDispatcher::getInstance()->trigger('onBuildIndex');
components/com_contact/controllers/contact.php: $results = $dispatcher->trigger('onValidateContact', array(&$contact, &$data));
components/com_contact/controllers/contact.php: $results = $dispatcher->trigger('onSubmitContact', array(&$contact, &$data));
components/com_contact/models/contact.php: $dispatcher->trigger('onContentPrepareForm', array($form, $data));
components/com_contact/models/contact.php: $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $data));
components/com_content/views/article/view.html.php: $results = $dispatcher->trigger('onContentPrepare', array ('com_content.article', &$item, &$this->params, $offset));
components/com_content/views/article/view.html.php: $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.article', &$item, &$this->params, $offset));
components/com_content/views/article/view.html.php: $results = $dispatcher->trigger('onContentBeforeDisplay', array('com_content.article', &$item, &$this->params, $offset));
components/com_content/views/article/view.html.php: $results = $dispatcher->trigger('onContentAfterDisplay', array('com_content.article', &$item, &$this->params, $offset));
components/com_content/views/category/view.html.php: $results = $dispatcher->trigger('onContentPrepare', array ('com_content.category', &$item, &$this->params, 0));
components/com_content/views/category/view.html.php: $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.category', &$item, &$item->params, 0));
components/com_content/views/category/view.html.php: $results = $dispatcher->trigger('onContentBeforeDisplay', array('com_content.category', &$item, &$item->params, 0));
components/com_content/views/category/view.html.php: $results = $dispatcher->trigger('onContentAfterDisplay', array('com_content.category', &$item, &$item->params, 0));
components/com_content/views/featured/view.html.php: $results = $dispatcher->trigger('onContentPrepare', array ('com_content.featured', &$item, &$this->params, 0));
components/com_content/views/featured/view.html.php: $results = $dispatcher->trigger('onContentAfterTitle', array('com_content.featured', &$item, &$item->params, 0));
components/com_content/views/featured/view.html.php: $results = $dispatcher->trigger('onContentBeforeDisplay', array('com_content.featured', &$item, &$item->params, 0));
components/com_content/views/featured/view.html.php: $results = $dispatcher->trigger('onContentAfterDisplay', array('com_content.featured', &$item, &$item->params, 0));
components/com_search/models/search.php: $results = $dispatcher->trigger('onContentSearch', array(
components/com_search/models/search.php: $searchareas = $dispatcher->trigger('onContentSearchAreas');
components/com_users/models/login.php: $results = $dispatcher->trigger('onContentPrepareForm', array($form, $data));
components/com_users/models/profile.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $this->data));
components/com_users/models/registration.php: $results = $dispatcher->trigger('onContentPrepareData', array('com_users.registration', $this->data));
libraries/joomla/html/content.php: $dispatcher->trigger('onContentPrepare', array($context, &$article, &$params, 0));
libraries/joomla/installer/installer.php: $dispatcher->trigger('onExtensionBeforeUpdate', array('type' => $type, 'manifest' => $this->manifest));
libraries/joomla/installer/installer.php: $dispatcher->trigger('onExtensionBeforeUninstall', array('eid' => $identifier));
libraries/joomla/session/session.php: $this->_dispatcher->trigger('onAfterSessionStart');
libraries/joomla/user/authentication.php: $results = $dispatcher->trigger('onUserAuthorisation', array($response, $options));
libraries/joomla/user/helper.php: $dispatcher->trigger('onContentPrepareData', array('com_users.profile', &$data));
libraries/joomla/user/user.php: $result = $dispatcher->trigger('onUserBeforeSave', array($oldUser->getProperties(), $isNew, $this->getProperties()));
libraries/joomla/user/user.php: $dispatcher->trigger('onUserAfterSave', array($this->getProperties(), $isNew, $result, $this->getError()));
libraries/joomla/user/user.php: $dispatcher->trigger('onUserBeforeDelete', array($this->getProperties()));
libraries/joomla/user/user.php: $dispatcher->trigger('onUserAfterDelete', array($this->getProperties(), $result, $this->getError()));
libraries/legacy/model/form.php: $results = $dispatcher->trigger('onContentPrepareForm', array($form, $data));
plugins/content/finder/finder.php: $dispatcher->trigger('onFinderAfterSave', array($context, $article, $isNew));
plugins/content/finder/finder.php: $dispatcher->trigger('onFinderBeforeSave', array($context, $article, $isNew));
plugins/content/finder/finder.php: $dispatcher->trigger('onFinderAfterDelete', array($context, $article));
plugins/content/finder/finder.php: $dispatcher->trigger('onFinderChangeState', array($context, $pks, $value));
plugins/content/finder/finder.php: $dispatcher->trigger('onFinderCategoryChangeState', array($extension, $pks, $value));
Donalds-MacBook-Air:j3 admin$ grep -r "triggerEvent('on" *
administrator/components/com_search/models/searches.php: $results = $app->triggerEvent('onContentSearch', array($item->search_term));
administrator/includes/application.php: $this->triggerEvent('onAfterRoute');
administrator/includes/application.php: $this->triggerEvent('onAfterDispatch');
administrator/includes/application.php: $this->triggerEvent('onBeforeRender');
administrator/includes/application.php: $this->triggerEvent('onAfterRender');
administrator/modules/mod_quickicon/helper.php: $arrays = (array) $app->triggerEvent('onGetIcons', array($context));
includes/application.php: $this->triggerEvent('onAfterDispatch');
includes/application.php: $this->triggerEvent('onBeforeRender');
includes/application.php: $this->triggerEvent('onAfterRender');
libraries/joomla/application/cli.php: $this->triggerEvent('onBeforeExecute');
libraries/joomla/application/cli.php: $this->triggerEvent('onAfterExecute');
libraries/joomla/application/daemon.php: static::$instance->triggerEvent('onReceiveSignal', array($signal));
libraries/joomla/application/daemon.php: $this->triggerEvent('onBeforeExecute');
libraries/joomla/application/daemon.php: $this->triggerEvent('onAfterExecute');
libraries/joomla/application/daemon.php: $this->triggerEvent('onFork');
libraries/joomla/application/web.php: $this->triggerEvent('onBeforeExecute');
libraries/joomla/application/web.php: $this->triggerEvent('onAfterExecute');
libraries/joomla/application/web.php: $this->triggerEvent('onBeforeRender');
libraries/joomla/application/web.php: $this->triggerEvent('onAfterRender');
libraries/joomla/application/web.php: $this->triggerEvent('onBeforeRespond');
libraries/joomla/application/web.php: $this->triggerEvent('onAfterRespond');
libraries/joomla/document/html/renderer/head.php: $app->triggerEvent('onBeforeCompileHead');
libraries/legacy/application/application.php: $this->triggerEvent('onAfterInitialise');
libraries/legacy/application/application.php: $this->triggerEvent('onAfterRoute');
libraries/legacy/application/application.php: $this->triggerEvent('onAfterDispatch');
libraries/legacy/application/application.php: $this->triggerEvent('onBeforeRender');
libraries/legacy/application/application.php: $this->triggerEvent('onAfterRender');
libraries/legacy/application/application.php: $this->triggerEvent('onUserAuthorisationFailure', array((array) $authorisation));
libraries/legacy/application/application.php: $results = $this->triggerEvent('onUserLogin', array((array) $response, $options));
libraries/legacy/application/application.php: $this->triggerEvent('onUserLoginFailure', array((array) $response));
libraries/legacy/application/application.php: $results = $this->triggerEvent('onUserLogout', array($parameters, $options));
libraries/legacy/application/application.php: $this->triggerEvent('onUserLogoutFailure', array($parameters));
modules/mod_articles_news/helper.php: $results = $app->triggerEvent('onContentAfterDisplay', array('com_content.article', &$item, &$params, 1));
modules/mod_articles_news/helper.php: $results = $app->triggerEvent('onContentBeforeDisplay', array('com_content.article', &$item, &$params, 1));
@garstud

This comment has been minimized.

Copy link

commented Dec 10, 2015

Hello, thanks for sharing ;)
May i suggest you add a third command ?
... I use this one to get events that are stored in PHP variables such as for 'UserGroups', 'Editor, 'Captcha' and extensions administration :
grep -r "[=>] 'on[A-Z]" *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.