Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Singleton / instance()

A class that hands out one shared instance per key, mostly through a static instance() method (often cached in $GLOBALS). 77 instances in Exponential.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/standards/patterns/singleton.md

On this page

Singleton / instance()

Note

This page is generated from the source code by php bin/php/exppatterncatalogue.php --write. Do not edit it by hand: change the code or the generator, then run the command again. How the patterns are recognized: the pattern catalogue.

A class that hands out one shared instance per key, mostly through a static instance() method (often cached in $GLOBALS).

GroupCreation
Instances77
Recognized byHas a static instance() or getInstance() method.
Extension pointCall Class::instance(); many of them take the settings file or database as the key.

Classes by area

extension/bccie (1)

All patterns of extension/bccie

ClassKindFileDescriptionExtension point
bccieExportFormatOutputHandlerclassextension/bccie/classes/bccieExportFormatOutputHandler.php:11––

extension/cjw_newsletter (1)

All patterns of extension/cjw_newsletter

ClassKindFileDescriptionExtension point
CjwNewsletterLogclass extends ezcLogextension/cjw_newsletter/classes/cjwnewsletterlog.php:28Log handling of the Cjw Newsletter using ezcLog logmessage time [severity] [source] [category] ( element1: value1, ....–

extension/expai (2)

All patterns of extension/expai

ClassKindFileDescriptionExtension point
expAiConfigclassextension/expai/classes/expaiconfig.php:14The settings of expai.ini, read fresh on every call (no static state: Velocity's persistent workers serve many requests and siteaccesses with one pro…–
expAiProviderRegistryclassextension/expai/classes/expaiproviderregistry.php:24The providers and models of expai.ini:–

extension/explayouts (1)

All patterns of extension/explayouts

ClassKindFileDescriptionExtension point
expLayoutsSiteclassextension/explayouts/classes/explayoutssite.php:9Exponential 4 Site registry compatible with the Exp Site API Site interface.–

extension/expqueue (1)

All patterns of extension/expqueue

ClassKindFileDescriptionExtension point
expQueueConfigclassextension/expqueue/classes/expqueueconfig.php:15The settings of expqueue (expqueue.ini), with the defaults that apply when a setting is missing.–

extension/ezfind (2)

All patterns of extension/ezfind

ClassKindFileDescriptionExtension point
eZFindExtendedAttributeFilterFactoryclassextension/ezfind/classes/ezfindextendedattributefilterfactory.php:10Extended attribute filters factory–
ezfSolrDocumentFieldBaseclassextension/ezfind/classes/ezfsolrdocumentfieldbase.php:21Class ezfSolrDocumentFieldBase.–

extension/ezflow (1)

All patterns of extension/ezflow

ClassKindFileDescriptionExtension point
eZFlowAjaxContentclassextension/ezflow/classes/ezflowajaxcontent.php:35––

extension/ezjscore (1)

All patterns of extension/ezjscore

ClassKindFileDescriptionExtension point
ezjscServerRouterclassextension/ezjscore/classes/ezjscserverrouter.php:39––

extension/ezupdate (1)

All patterns of extension/ezupdate

ClassKindFileDescriptionExtension point
eZUpdateManagerclassextension/ezupdate/classes/ezupdatemanager.php:19Runs Composer for the installation this extension belongs to.–

extension/git_manager (1)

All patterns of extension/git_manager

ClassKindFileDescriptionExtension point
GitManagerclassextension/git_manager/classes/git_manager.php:9––

extension/sevenx_authentication_2fa (1)

All patterns of extension/sevenx_authentication_2fa

ClassKindFileDescriptionExtension point
sevenxAuthentication2faHelperclassextension/sevenx_authentication_2fa/classes/sevenxauthentication2fahelper.php:23––

extension/sqliimport (3)

All patterns of extension/sqliimport

ClassKindFileDescriptionExtension point
expImportRegistryclassextension/sqliimport/classes/exp/engine/expimportregistry.php:23The catalogue of a site: its sources, handlers and transforms.extension/sqliimport/settings/kernelservices.ini [Service_sqliimport.registry] Class
SQLIContentPublisherclassextension/sqliimport/classes/content/sqlicontentpublisher.php:26SQLIContentPublisher is a class allowing to publish a content $options = new SQLIContentOptions( array( 'class_identifier' =› 'article', 'remote_id'…–
SQLIImportFactoryclassextension/sqliimport/classes/sqliimportfactory.php:12Import factory Will trigger import for all declared and activated import handlers–

extension/syndication (1)

All patterns of extension/syndication

ClassKindFileDescriptionExtension point
eZImportEditWizardclass extends eZWizardBaseextension/syndication/modules/syndication/import_edit/ezimporteditwizard.php:47––

kernel/classes (12)

All patterns of kernel/classes

ClassKindFileDescriptionExtension point
expPasswordPolicyclasskernel/classes/exppasswordpolicy.php:24The rules a new password must meet, and what happens after a password was changed.–
expScriptStatusclasskernel/classes/expscriptstatus.php:18expScriptStatus - lightweight CLI progress/status reporter.–
expWeakPasswordListclasskernel/classes/expweakpasswordlist.php:35The one list of well-known and common passwords, and the check every place that sets a new password uses: the setup wizard, the kickstarter and exp:i…–
eZBinaryFileHandlerclasskernel/classes/ezbinaryfilehandler.php:23––
eZClusterFileHandlerclasskernel/classes/ezclusterfilehandler.php:11––
eZCollaborationProfileclass extends eZPersistentObjectkernel/classes/ezcollaborationprofile.php:18––
eZCollaborationViewHandlerclasskernel/classes/ezcollaborationviewhandler.php:18––
eZConfirmOrderHandlerclasskernel/classes/ezconfirmorderhandler.php:18––
eZPackageCreationHandlerclasskernel/classes/ezpackagecreationhandler.php:21––
eZPackageInstallationHandlerclasskernel/classes/ezpackageinstallationhandler.php:19––
eZScriptclasskernel/classes/ezscript.php:49––
eZShopAccountHandlerclasskernel/classes/ezshopaccounthandler.php:12––

kernel/classes/datatable (1)

All patterns of kernel/classes/datatable

ClassKindFileDescriptionExtension point
expDataTableCatalogueclasskernel/classes/datatable/expdatatablecatalogue.php:32The catalogue of data tables (doc/eng-us/features/6.0/data-tables.md, "The catalogue"): every persistent class of the installation (an eZPersistentOb…–

kernel/classes/datatypes (3)

All patterns of kernel/classes/datatypes

ClassKindFileDescriptionExtension point
eZUserclass extends eZPersistentObjectkernel/classes/datatypes/ezuser/ezuser.php:21–extension/AdminAid/settings/aid.ini [SearchDatabase] ClassList[]
eZUserLoginHandlerclasskernel/classes/datatypes/ezuser/ezuserloginhandler.php:19––
eZXMLSchemaclasskernel/classes/datatypes/ezxmltext/ezxmlschema.php:12––

kernel/classes/help (4)

All patterns of kernel/classes/help

ClassKindFileDescriptionExtension point
expHelpContentProviderclasskernel/classes/help/content/exphelpcontentprovider.php:19Help maintained as content, delivered into the help system (exphelp): the topics the current user may see, rendered with the help's Markdown renderer…settings/exphelp.ini [ContextHelp] Providers[]
expHelpContentRepositoryclasskernel/classes/help/content/exphelpcontentrepository.php:15Reads help maintained as content out of the database into plain arrays (the shapes expHelpContentValidator describes), without any permission filter:…settings/site.ini [Cache_exphelpcontent] class; settings/site.ini [Cache_exphelpcontent] purgeClass
expHelpContextRegistryclasskernel/classes/help/exphelpcontextregistry.php:45Context help: which help page answers "help for this page", for a module, view and design.–
expHelpDocumentIndexclasskernel/classes/help/exphelpdocumentindex.php:46The index of the help pages (doc/eng-us/features/6.0/help-system.md, "The index"): one entry per document of the allowlist (expHelpAllowlist: git-tra…–

kernel/classes/logviewer (2)

All patterns of kernel/classes/logviewer

ClassKindFileDescriptionExtension point
expLogManagerclasskernel/classes/logviewer/explogmanager.php:27Log management (doc/eng-us/features/6.0/log-rotation.md): the logs of the installation with their archives, sizes, growth and limits; rotation, pruni…–
expLogViewerConfigclasskernel/classes/logviewer/explogviewerconfig.php:11The settings of the log viewer (settings/logviewer.ini, doc/eng-us/features/6.0/log-viewer.md, "Settings"), read once per request with safe bounds.–

kernel/classes/mailpreferences (1)

All patterns of kernel/classes/mailpreferences

ClassKindFileDescriptionExtension point
expMailCategoryRegistryclasskernel/classes/mailpreferences/expmailcategoryregistry.php:26All categories of e-mail, in the order the preference page shows them:–

kernel/classes/notification (1)

All patterns of kernel/classes/notification

ClassKindFileDescriptionExtension point
eZNotificationTransportclasskernel/classes/notification/eznotificationtransport.php:17––

kernel/classes/requestclassifier (1)

All patterns of kernel/classes/requestclassifier

ClassKindFileDescriptionExtension point
expRequestClassifierclasskernel/classes/requestclassifier/exprequestclassifier.php:29The request classifier: tells a probe, a traversal, an injection, a scanner or a burst of not-found answers from an ordinary request, and writes one…–

kernel/classes/subitems (1)

All patterns of kernel/classes/subitems

ClassKindFileDescriptionExtension point
expSubitemsColumnRegistryclasskernel/classes/subitems/expsubitemscolumnregistry.php:23The registry of the admin subitems list columns ("Table options").–

kernel/classes/transfer (1)

All patterns of kernel/classes/transfer

ClassKindFileDescriptionExtension point
expKernelTransferRegistryclasskernel/classes/transfer/expkerneltransferregistry.php:30The transfer registry: every import and export tool of the installation, as each declares itself in kernelservices.ini (a [Service_transfer.] block t…settings/kernelservices.ini [Service_transfer.registry] Class

kernel/common (1)

All patterns of kernel/common

ClassKindFileDescriptionExtension point
eZTemplateDesignResourceclass extends eZTemplateFileResourcekernel/common/eztemplatedesignresource.php:18––

kernel/modules (1)

All patterns of kernel/modules

ClassKindFileDescriptionExtension point
eZCurrencyConverterclasskernel/shop/classes/ezcurrencyconverter.php:20––

kernel/private (5)

All patterns of kernel/private

ClassKindFileDescriptionExtension point
ezpContentPublishingQueueProcessorclasskernel/private/classes/ezpcontentpublishingqueueprocessor.php:21This class manages the publishing queue through ezpContentPublishingProcess persistent objects–
ezpEventclasskernel/private/classes/ezpevent.php:20This class handles internal kernel events in Exponential, aka hooks.–
ezpExtensionclasskernel/private/classes/ezpextension.php:15Object representing an Exponential extension–
ezpKernelclasskernel/private/classes/ezpkernel.php:16Base Exponential kernel class.–
ezpRestDebugclasskernel/private/rest/classes/debug/debug.php:11––

kernel/private/classes/requestrules (1)

All patterns of kernel/private/classes/requestrules

ClassKindFileDescriptionExtension point
ezpRequestRuleEngineclasskernel/private/classes/requestrules/ezprequestruleengine.php:32The request rules: an ordered list of rules, each a set of conditions and an action, asked about every module view the kernel is about to run.–

lib/ezdb (1)

All patterns of lib/ezdb

ClassKindFileDescriptionExtension point
eZDBclasslib/ezdb/classes/ezdb.php:80––

lib/ezdbschema (1)

All patterns of lib/ezdbschema

ClassKindFileDescriptionExtension point
eZDbSchemaclasslib/ezdbschema/classes/ezdbschema.php:19––

lib/ezfile (1)

All patterns of lib/ezfile

ClassKindFileDescriptionExtension point
eZFileHandlerclasslib/ezfile/classes/ezfilehandler.php:56––

lib/ezi18n (8)

All patterns of lib/ezi18n

ClassKindFileDescriptionExtension point
expI18nFallbackResolverclasslib/ezi18n/classes/expi18nfallbackresolver.php:32Which translations a locale falls back to, in order: the one source of truth for the translator (eZTSTranslator), the interface language choice (expU…–
eZCharTransformclasslib/ezi18n/classes/ezchartransform.php:21––
eZCodePageclasslib/ezi18n/classes/ezcodepage.php:19––
eZCodePageMapperclasslib/ezi18n/classes/ezcodepagemapper.php:18––
eZMBStringMapperclasslib/ezi18n/classes/ezmbstringmapper.php:25––
eZTextCodecclasslib/ezi18n/classes/eztextcodec.php:23––
eZTranslatorManagerclasslib/ezi18n/classes/eztranslatormanager.php:31––
eZUTF8Codecclasslib/ezi18n/classes/ezutf8codec.php:22––

lib/ezimage (1)

All patterns of lib/ezimage

ClassKindFileDescriptionExtension point
eZImageManagerclasslib/ezimage/classes/ezimagemanager.php:85––

lib/ezlocale (1)

All patterns of lib/ezlocale

ClassKindFileDescriptionExtension point
eZLocaleclasslib/ezlocale/classes/ezlocale.php:111––

lib/eztemplate (3)

All patterns of lib/eztemplate

ClassKindFileDescriptionExtension point
eZTemplateclasslib/eztemplate/classes/eztemplate.php:200––
eZTemplateElementParserclasslib/eztemplate/classes/eztemplateelementparser.php:18––
eZTemplateMultiPassParserclass extends eZTemplateParserlib/eztemplate/classes/eztemplatemultipassparser.php:18––

lib/ezutils (9)

All patterns of lib/ezutils

ClassKindFileDescriptionExtension point
eZCLIclasslib/ezutils/classes/ezcli.php:31––
eZDebugclasslib/ezutils/classes/ezdebug.php:59––
eZExpiryHandlerclasslib/ezutils/classes/ezexpiryhandler.php:16Keeps track of expiry keys and their timestamps–
eZHTTPToolclasslib/ezutils/classes/ezhttptool.php:25–settings/kernelservices.ini [Service_http] Class
eZINIclasslib/ezutils/classes/ezini.php:53### EXP-MULTI-SITE-OVERRIDE-SETTINGS ### - lib/ezutils/classes/ezini.php - new ini setting ext-siteaccess-override - - new ini setting ext-siteaccess…settings/kernelservices.ini [Service_ini.i18n] Class; settings/kernelservices.ini [Service_ini.site] Class
eZMimeTypeclasslib/ezutils/classes/ezmimetype.php:34––
eZProcessclasslib/ezutils/classes/ezprocess.php:18––
eZSysclasslib/ezutils/classes/ezsys.php:33Easy access to various system settings–
eZURIclasslib/ezutils/classes/ezuri.php:32Provides access to the HTTP uri–

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x