MediaWiki REL1_39
|
Public Member Functions | |
__unserialize ( $serializationData) | |
getGlobalIdentifiers () | |
Returns all the global site identifiers. | |
getGroup ( $groupName) | |
Returns the sites that are in the provided group. | |
getObjectType () | |
getSite ( $globalSiteId) | |
Returns the Site with the provided global site identifier. | |
getSiteByInternalId ( $id) | |
Returns the Site with the provided site id. | |
getSiteByNavigationId ( $id) | |
Returns the Site with the provided navigational site id. | |
hasInternalId ( $id) | |
Returns if the list contains the site with the provided site id. | |
hasNavigationId ( $id) | |
Returns if the list contains the site with the provided navigational site id. | |
hasSite ( $globalSiteId) | |
Returns if the list contains the site with the provided global site identifier. | |
isEmpty () | |
Returns if the list contains no sites. | |
offsetUnset ( $index) | |
removeSite ( $globalSiteId) | |
Removes the site with the specified global site identifier. | |
removeSiteByInternalId ( $id) | |
Removes the site with the specified site id. | |
removeSiteByNavigationId ( $id) | |
Removes the site with the specified navigational site id. | |
setSite (Site $site) | |
Sets a site in the list. | |
Public Member Functions inherited from GenericArrayObject | |
__construct ( $input=null, $flags=0, $iterator_class='ArrayIterator') | |
__serialize () | |
append ( $value) | |
offsetSet ( $index, $value) | |
serialize () | |
unserialize ( $serialization) | |
Static Public Member Functions | |
static | getSerialVersionId () |
Returns the version ID that identifies the serialization structure used by getSerializationData() and unserialize(), including the structure of any nested structures. | |
Protected Member Functions | |
getSerializationData () | |
preSetElement ( $index, $site) | |
Protected Member Functions inherited from GenericArrayObject | |
getNewOffset () | |
Finds a new offset for when appending an element. | |
hasValidType ( $value) | |
Returns if the provided value has the same type as the elements that can be added to this ArrayObject. | |
setElement ( $index, $value) | |
Method that actually sets the element and holds all common code needed for set operations, including type checking and offset resolving. | |
Protected Attributes | |
array | $byGlobalId = [] |
Global site identifiers pointing to their sites offset value. | |
array | $byInternalId = [] |
Internal site identifiers pointing to their sites offset value. | |
array | $byNavigationId = [] |
Navigational site identifiers alias inter-language prefixes pointing to their sites offset value. | |
Protected Attributes inherited from GenericArrayObject | |
int | $indexOffset = 0 |
Definition at line 29 of file SiteList.php.
SiteList::__unserialize | ( | $serializationData | ) |
array | $serializationData |
Reimplemented from GenericArrayObject.
Definition at line 341 of file SiteList.php.
SiteList::getGlobalIdentifiers | ( | ) |
Returns all the global site identifiers.
Optionally only those belonging to the specified group.
Definition at line 129 of file SiteList.php.
SiteList::getGroup | ( | $groupName | ) |
Returns the sites that are in the provided group.
string | $groupName |
Definition at line 276 of file SiteList.php.
SiteList::getObjectType | ( | ) |
Reimplemented from GenericArrayObject.
Definition at line 65 of file SiteList.php.
|
protected |
Reimplemented from GenericArrayObject.
Definition at line 321 of file SiteList.php.
|
static |
Returns the version ID that identifies the serialization structure used by getSerializationData() and unserialize(), including the structure of any nested structures.
This is useful for constructing cache keys in cases where the cache relies on serialization for storing the SiteList.
Definition at line 310 of file SiteList.php.
SiteList::getSite | ( | $globalSiteId | ) |
Returns the Site with the provided global site identifier.
The site needs to exist, so if not sure, call hasGlobalId first.
string | $globalSiteId |
Definition at line 154 of file SiteList.php.
Referenced by CachingSiteStore\getSite().
SiteList::getSiteByInternalId | ( | $id | ) |
Returns the Site with the provided site id.
The site needs to exist, so if not sure, call has first.
int | $id |
Definition at line 202 of file SiteList.php.
SiteList::getSiteByNavigationId | ( | $id | ) |
Returns the Site with the provided navigational site id.
The site needs to exist, so if not sure, call has first.
string | $id |
Definition at line 239 of file SiteList.php.
SiteList::hasInternalId | ( | $id | ) |
Returns if the list contains the site with the provided site id.
int | $id |
Definition at line 188 of file SiteList.php.
SiteList::hasNavigationId | ( | $id | ) |
Returns if the list contains the site with the provided navigational site id.
string | $id |
Definition at line 225 of file SiteList.php.
SiteList::hasSite | ( | $globalSiteId | ) |
Returns if the list contains the site with the provided global site identifier.
string | $globalSiteId |
Definition at line 140 of file SiteList.php.
Referenced by CachingSiteStore\getSite(), and preSetElement().
SiteList::isEmpty | ( | ) |
Returns if the list contains no sites.
Reimplemented from GenericArrayObject.
Definition at line 177 of file SiteList.php.
SiteList::offsetUnset | ( | $index | ) |
mixed | $index |
Definition at line 102 of file SiteList.php.
|
protected |
int | string | $index | |
Site | $site |
Reimplemented from GenericArrayObject.
Definition at line 79 of file SiteList.php.
References hasSite(), and removeSite().
SiteList::removeSite | ( | $globalSiteId | ) |
Removes the site with the specified global site identifier.
The site needs to exist, so if not sure, call hasGlobalId first.
string | $globalSiteId |
Definition at line 166 of file SiteList.php.
Referenced by preSetElement().
SiteList::removeSiteByInternalId | ( | $id | ) |
Removes the site with the specified site id.
The site needs to exist, so if not sure, call has first.
int | $id |
Definition at line 214 of file SiteList.php.
SiteList::removeSiteByNavigationId | ( | $id | ) |
Removes the site with the specified navigational site id.
The site needs to exist, so if not sure, call has first.
string | $id |
Definition at line 251 of file SiteList.php.
SiteList::setSite | ( | Site | $site | ) |
Sets a site in the list.
If the site was not there, it will be added. If it was, it will be updated.
Site | $site |
Definition at line 263 of file SiteList.php.
|
protected |
Global site identifiers pointing to their sites offset value.
Maps string identifiers to local ArrayObject keys
Definition at line 46 of file SiteList.php.
|
protected |
Internal site identifiers pointing to their sites offset value.
Maps int identifiers to local ArrayObject keys
Definition at line 37 of file SiteList.php.
|
protected |
Navigational site identifiers alias inter-language prefixes pointing to their sites offset value.
Maps string identifiers to local ArrayObject keys
Definition at line 56 of file SiteList.php.