Semantic MediaWiki and related extensions
|
Static Public Member Functions | |
static | getInstance () |
static | clear () |
Application instances access for internal and external use
GNU GPL v2+
SMW\ApplicationFactory::__construct | ( | ContainerBuilder | $containerBuilder = null , |
$servicesFileDir = '' |
|||
) |
ContainerBuilder | null | $containerBuilder | |
string | $servicesFileDir |
|
static |
SMW\ApplicationFactory::create | ( | $service | ) |
string | $service |
SMW\ApplicationFactory::getCache | ( | $cacheType = null | ) |
SMW\ApplicationFactory::getCacheFactory | ( | ) |
SMW\ApplicationFactory::getConnectionManager | ( | ) |
SMW\ApplicationFactory::getDataItemFactory | ( | ) |
SMW\ApplicationFactory::getDataValueFactory | ( | ) |
SMW\ApplicationFactory::getEntityCache | ( | ) |
SMW\ApplicationFactory::getEventDispatcher | ( | ) |
SMW\ApplicationFactory::getInMemoryPoolCache | ( | ) |
|
static |
This method returns the global instance of the application factory.
Reliance on global state is needed at entry points into SMW such as hook handlers, special pages and jobs, since there we tend to not have control over the object lifecycle. Pragmatically we might also want to use this when refactoring legacy code that already has the global state dependency. For new code very special justification is required to rely on global state.
SMW\ApplicationFactory::getIteratorFactory | ( | ) |
SMW\ApplicationFactory::getJobQueue | ( | ) |
SMW\ApplicationFactory::getLoadBalancer | ( | ) |
SMW\ApplicationFactory::getMediaWikiLogger | ( | $channel = 'smw' | ) |
SMW\ApplicationFactory::getMediaWikiNsContentReader | ( | ) |
SMW\ApplicationFactory::getNamespaceExaminer | ( | ) |
SMW\ApplicationFactory::getPropertyLabelFinder | ( | ) |
SMW\ApplicationFactory::getPropertySpecificationLookup | ( | ) |
SMW\ApplicationFactory::getQueryFactory | ( | ) |
SMW\ApplicationFactory::getQuerySourceFactory | ( | $source = null | ) |
string | null | $source |
SMW\ApplicationFactory::getSettings | ( | ) |
SMW\ApplicationFactory::getStore | ( | $store = null | ) |
SMW\ApplicationFactory::newCacheFactory | ( | ) |
SMW\ApplicationFactory::newContentParser | ( | Title | $title | ) |
SMW\ApplicationFactory::newDataUpdater | ( | SemanticData | $semanticData | ) |
SMW\ApplicationFactory::newDeferredCallableUpdate | ( | callable | $callback = null | ) |
callable | $callback |
SMW\ApplicationFactory::newDeferredTransactionalCallableUpdate | ( | callable | $callback = null | ) |
callable | $callback |
SMW\ApplicationFactory::newHierarchyLookup | ( | ) |
SMW\ApplicationFactory::newInTextAnnotationParser | ( | ParserData | $parserData | ) |
SMW\ApplicationFactory::newJobFactory | ( | ) |
SMW\ApplicationFactory::newMaintenanceFactory | ( | ) |
SMW\ApplicationFactory::newMwCollaboratorFactory | ( | ) |
SMW\ApplicationFactory::newPageCreator | ( | ) |
SMW\ApplicationFactory::newPageUpdater | ( | ) |
SMW\ApplicationFactory::newParserData | ( | Title | $title, |
ParserOutput | $parserOutput | ||
) |
SMW\ApplicationFactory::newParserFunctionFactory | ( | ) |
SMW\ApplicationFactory::newQueryParser | ( | $queryFeatures = false | ) |
SMW\ApplicationFactory::newSerializerFactory | ( | ) |
SMW\ApplicationFactory::newTitleFactory | ( | ) |
SMW\ApplicationFactory::registerFromFile | ( | $file | ) |
string | $file |
SMW\ApplicationFactory::registerObject | ( | $objectName, | |
$objectSignature | |||
) |
string | $objectName | |
callable | array | $objectSignature |
SMW\ApplicationFactory::singleton | ( | $service | ) |
string | $service |