BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DBSiteStore Class Reference
Inheritance diagram for DBSiteStore:
Collaboration diagram for DBSiteStore:

Public Member Functions

 __construct (LoadBalancer $dbLoadBalancer)
 
 getSites ()
 
 getSite ($globalId)
 
 saveSite (Site $site)
 
 saveSites (array $sites)
 
 reset ()
 
 clear ()
 

Protected Member Functions

 loadSites ()
 

Protected Attributes

 $sites = null
 

Constructor & Destructor Documentation

DBSiteStore::__construct ( LoadBalancer  $dbLoadBalancer)
Since
1.27
Todo:
: inject some kind of connection manager that is aware of the target wiki, instead of injecting a LoadBalancer.
Parameters
LoadBalancer$dbLoadBalancer

Member Function Documentation

DBSiteStore::clear ( )

Clears the list of sites stored in the database.

See Also
SiteStore::clear()
Returns
bool Success

Implements SiteStore.

DBSiteStore::getSite (   $globalId)
See Also
SiteStore::getSite
Since
1.25
Parameters
string$globalId
Returns
Site|null

Implements SiteLookup.

DBSiteStore::getSites ( )
See Also
SiteStore::getSites
Since
1.25
Returns
SiteList

Implements SiteLookup.

DBSiteStore::loadSites ( )
protected

Fetches the site from the database and loads them into the sites field.

Since
1.25
DBSiteStore::reset ( )

Resets the SiteList

Since
1.25
DBSiteStore::saveSite ( Site  $site)
See Also
SiteStore::saveSite
Since
1.25
Parameters
Site$site
Returns
bool Success indicator

Implements SiteStore.

DBSiteStore::saveSites ( array  $sites)
See Also
SiteStore::saveSites
Since
1.25
Parameters
Site[]$sites
Returns
bool Success indicator

Implements SiteStore.


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