Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\ApplicationFactory Class Reference

Public Member Functions

 __construct (ContainerBuilder $containerBuilder=null, $servicesFileDir='')
 
 registerObject ( $objectName, $objectSignature)
 
 registerFromFile ( $file)
 
 singleton (... $service)
 
 create (... $service)
 
 newSerializerFactory ()
 
 newJobFactory ()
 
 newParserFunctionFactory ()
 
 newMaintenanceFactory ()
 
 newCacheFactory ()
 
 getCacheFactory ()
 
 getQuerySourceFactory ( $source=null)
 
 getStore ( $store=null)
 
 getSettings ()
 
 getConnectionManager ()
 
 getEventDispatcher ()
 
 newTitleFactory ()
 
 newPageCreator ()
 
 newPageUpdater ()
 
 getIteratorFactory ()
 
 getDataValueFactory ()
 
 getCache ( $cacheType=null)
 
 getEntityCache ()
 
 newInTextAnnotationParser (ParserData $parserData)
 
 newParserData (Title $title, ParserOutput $parserOutput)
 
 newContentParser (Title $title)
 
 newDataUpdater (SemanticData $semanticData)
 
 newMwCollaboratorFactory ()
 
 getNamespaceExaminer ()
 
 getPropertySpecificationLookup ()
 
 newHierarchyLookup ()
 
 getPropertyLabelFinder ()
 
 getMediaWikiNsContentReader ()
 
 getInMemoryPoolCache ()
 
 getLoadBalancer ()
 
 newDeferredCallableUpdate (callable $callback=null)
 
 newDeferredTransactionalCallableUpdate (callable $callback=null)
 
 newQueryParser ( $queryFeatures=false)
 
 getDataItemFactory ()
 
 getQueryFactory ()
 
 getMediaWikiLogger ( $channel='smw')
 
 getJobQueue ()
 

Static Public Member Functions

static getInstance ()
 
static clear ()
 

Detailed Description

Application instances access for internal and external use

GNU GPL v2+

Since
2.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\ApplicationFactory::__construct ( ContainerBuilder  $containerBuilder = null,
  $servicesFileDir = '' 
)
Since
2.0
Parameters
ContainerBuilder | null$containerBuilder
string$servicesFileDir

Member Function Documentation

◆ clear()

static SMW\ApplicationFactory::clear ( )
static
Since
2.0

◆ create()

SMW\ApplicationFactory::create (   $service)
Note
Services called via this function are for internal use only and not to be relied upon for external access.
Since
2.5
Parameters
string$service
Returns
mixed

◆ getCache()

SMW\ApplicationFactory::getCache (   $cacheType = null)
Since
2.0
Returns
Cache

◆ getCacheFactory()

SMW\ApplicationFactory::getCacheFactory ( )
Since
2.2
Returns
CacheFactory

◆ getConnectionManager()

SMW\ApplicationFactory::getConnectionManager ( )
Since
3.0
Returns
ConnectionManager

◆ getDataItemFactory()

SMW\ApplicationFactory::getDataItemFactory ( )
Since
2.5
Returns
DataItemFactory

◆ getDataValueFactory()

SMW\ApplicationFactory::getDataValueFactory ( )
Since
2.5
Returns
DataValueFactory

◆ getEntityCache()

SMW\ApplicationFactory::getEntityCache ( )
Since
3.1
Returns
EntityCache

◆ getEventDispatcher()

SMW\ApplicationFactory::getEventDispatcher ( )
Since
3.1
Returns
EventDispatcher

◆ getInMemoryPoolCache()

SMW\ApplicationFactory::getInMemoryPoolCache ( )
Since
2.4
Returns
InMemoryPoolCache

◆ getInstance()

static SMW\ApplicationFactory::getInstance ( )
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.

Since
2.0
Returns
self

◆ getIteratorFactory()

SMW\ApplicationFactory::getIteratorFactory ( )
Since
2.5
Returns
IteratorFactory

◆ getJobQueue()

SMW\ApplicationFactory::getJobQueue ( )
Since
3.0
Returns
JobQueue

◆ getLoadBalancer()

SMW\ApplicationFactory::getLoadBalancer ( )
Since
2.5
Returns

◆ getMediaWikiLogger()

SMW\ApplicationFactory::getMediaWikiLogger (   $channel = 'smw')
Since
2.5
Returns
LoggerInterface

◆ getMediaWikiNsContentReader()

SMW\ApplicationFactory::getMediaWikiNsContentReader ( )
Since
2.4
Returns
MediaWikiNsContentReader

◆ getNamespaceExaminer()

SMW\ApplicationFactory::getNamespaceExaminer ( )
Since
2.1
Returns
NamespaceExaminer

◆ getPropertyLabelFinder()

SMW\ApplicationFactory::getPropertyLabelFinder ( )
Since
2.5
Returns
PropertyLabelFinder

◆ getPropertySpecificationLookup()

SMW\ApplicationFactory::getPropertySpecificationLookup ( )
Since
2.4
Returns
PropertySpecificationLookup

◆ getQueryFactory()

SMW\ApplicationFactory::getQueryFactory ( )
Since
2.5
Returns
QueryFactory

◆ getQuerySourceFactory()

SMW\ApplicationFactory::getQuerySourceFactory (   $source = null)
Since
2.5
Parameters
string | null$source
Returns
QuerySourceFactory

◆ getSettings()

SMW\ApplicationFactory::getSettings ( )
Since
2.0
Returns
Settings

◆ getStore()

SMW\ApplicationFactory::getStore (   $store = null)
Since
2.0
Returns
Store

◆ newCacheFactory()

SMW\ApplicationFactory::newCacheFactory ( )
Since
2.2
Returns
CacheFactory

◆ newContentParser()

SMW\ApplicationFactory::newContentParser ( Title  $title)
Since
2.0
Returns
ContentParser

◆ newDataUpdater()

SMW\ApplicationFactory::newDataUpdater ( SemanticData  $semanticData)
Since
2.1
Parameters
SemanticData$semanticData
Returns
DataUpdater

◆ newDeferredCallableUpdate()

SMW\ApplicationFactory::newDeferredCallableUpdate ( callable  $callback = null)
Since
2.4
Parameters
callable$callback
Returns
DeferredCallableUpdate

◆ newDeferredTransactionalCallableUpdate()

SMW\ApplicationFactory::newDeferredTransactionalCallableUpdate ( callable  $callback = null)
Since
3.0
Parameters
callable$callback
Returns
DeferredTransactionalUpdate

◆ newHierarchyLookup()

SMW\ApplicationFactory::newHierarchyLookup ( )
Since
2.4
Returns
HierarchyLookup

◆ newInTextAnnotationParser()

SMW\ApplicationFactory::newInTextAnnotationParser ( ParserData  $parserData)
Since
2.0
Returns
InTextAnnotationParser

◆ newJobFactory()

SMW\ApplicationFactory::newJobFactory ( )
Since
2.0
Returns
JobFactory

◆ newMaintenanceFactory()

SMW\ApplicationFactory::newMaintenanceFactory ( )
Since
2.2
Returns
MaintenanceFactory

◆ newMwCollaboratorFactory()

SMW\ApplicationFactory::newMwCollaboratorFactory ( )
Since
2.1
Returns
MwCollaboratorFactory

◆ newPageCreator()

SMW\ApplicationFactory::newPageCreator ( )
Since
2.0
Returns
PageCreator

◆ newPageUpdater()

SMW\ApplicationFactory::newPageUpdater ( )
Since
2.5
Returns
PageUpdater

◆ newParserData()

SMW\ApplicationFactory::newParserData ( Title  $title,
ParserOutput  $parserOutput 
)
Since
2.0
Returns
ParserData

◆ newParserFunctionFactory()

SMW\ApplicationFactory::newParserFunctionFactory ( )
Since
2.1
Returns
ParserFunctionFactory

◆ newQueryParser()

SMW\ApplicationFactory::newQueryParser (   $queryFeatures = false)
Deprecated:
since 2.5, use QueryFactory::newQueryParser
Since
2.1
Returns
QueryParser

◆ newSerializerFactory()

SMW\ApplicationFactory::newSerializerFactory ( )
Since
2.0
Returns
SerializerFactory

◆ newTitleFactory()

SMW\ApplicationFactory::newTitleFactory ( )
Since
2.0
Returns
TitleFactory

◆ registerFromFile()

SMW\ApplicationFactory::registerFromFile (   $file)
Since
2.5
Parameters
string$file

◆ registerObject()

SMW\ApplicationFactory::registerObject (   $objectName,
  $objectSignature 
)
Since
2.0
Parameters
string$objectName
callable | array$objectSignature

◆ singleton()

SMW\ApplicationFactory::singleton (   $service)
Note
Services called via this function are for internal use only and not to be relied upon for external access.
Parameters
string$service
Returns
mixed

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy