MediaWiki
1.23.2
|
Public Member Functions | |
getGlobalIdentifiers () | |
Returns all the global site identifiers. More... | |
getGroup ( $groupName) | |
Returns the sites that are in the provided group. More... | |
getObjectType () | |
getSite ( $globalSiteId) | |
Returns the Site with the provided global site identifier. More... | |
getSiteByInternalId ( $id) | |
Returns the Site with the provided site id. More... | |
getSiteByNavigationId ( $id) | |
Returns the Site with the provided navigational site id. More... | |
hasInternalId ( $id) | |
Returns if the list contains the site with the provided site id. More... | |
hasNavigationId ( $id) | |
Returns if the list contains the site with the provided navigational site id. More... | |
hasSite ( $globalSiteId) | |
Returns if the list contains the site with the provided global site identifier. More... | |
isEmpty () | |
Returns if the list contains no sites. More... | |
offsetUnset ( $index) | |
removeSite ( $globalSiteId) | |
Removes the site with the specified global site identifier. More... | |
removeSiteByInternalId ( $id) | |
Removes the site with the specified site id. More... | |
removeSiteByNavigationId ( $id) | |
Removes the site with the specified navigational site id. More... | |
setSite (Site $site) | |
Sets a site in the list. More... | |
unserialize ( $serialization) | |
Public Member Functions inherited from GenericArrayObject | |
__construct ( $input=null, $flags=0, $iterator_class='ArrayIterator') | |
Constructor. More... | |
append ( $value) | |
offsetSet ( $index, $value) | |
serialize () | |
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. More... | |
Public Attributes | |
const | SERIAL_VERSION_ID = '2014-03-17' |
Protected Member Functions | |
getSerializationData () | |
preSetElement ( $index, $site) | |
Protected Member Functions inherited from GenericArrayObject | |
getNewOffset () | |
Finds a new offset for when appending an element. More... | |
hasValidType ( $value) | |
Returns if the provided value has the same type as the elements that can be added to this ArrayObject. More... | |
setElement ( $index, $value) | |
Method that actually sets the element and holds all common code needed for set operations, including type checking and offset resolving. More... | |
Protected Attributes | |
array | $byGlobalId = array() |
Global site identifiers pointing to their sites offset value. More... | |
array | $byInternalId = array() |
Internal site identifiers pointing to their sites offset value. More... | |
array | $byNavigationId = array() |
Navigational site identifiers alias inter-language prefixes pointing to their sites offset value. More... | |
Protected Attributes inherited from GenericArrayObject | |
integer | $indexOffset = 0 |
Definition at line 29 of file SiteList.php.
SiteList::getGlobalIdentifiers | ( | ) |
Returns all the global site identifiers.
Optionally only those belonging to the specified group.
Definition at line 127 of file SiteList.php.
Referenced by SiteListTest\testGetGlobalIdentifiers(), and SiteListTest\testSerialization().
SiteList::getGroup | ( | $groupName | ) |
Returns the sites that are in the provided group.
string | $groupName |
Definition at line 274 of file SiteList.php.
References as.
SiteList::getObjectType | ( | ) |
Reimplemented from GenericArrayObject.
Definition at line 63 of file SiteList.php.
|
protected |
Reimplemented from GenericArrayObject.
Definition at line 319 of file SiteList.php.
References array().
|
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 308 of file SiteList.php.
References Site\SERIAL_VERSION_ID.
Referenced by SiteSQLStore\getCacheKey().
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 152 of file SiteList.php.
Referenced by SiteSQLStore\getSite(), and SiteListTest\testGetSiteByGlobalId().
SiteList::getSiteByInternalId | ( | $id | ) |
Returns the Site with the provided site id.
The site needs to exist, so if not sure, call has first.
integer | $id |
Definition at line 200 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 237 of file SiteList.php.
SiteList::hasInternalId | ( | $id | ) |
Returns if the list contains the site with the provided site id.
integer | $id |
Definition at line 186 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 223 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 138 of file SiteList.php.
Referenced by SiteSQLStore\getSite(), and preSetElement().
SiteList::isEmpty | ( | ) |
Returns if the list contains no sites.
Reimplemented from GenericArrayObject.
Definition at line 175 of file SiteList.php.
References array().
Referenced by SiteListTest\testIsEmpty().
SiteList::offsetUnset | ( | $index | ) |
mixed | $index |
Definition at line 100 of file SiteList.php.
References as.
Referenced by removeSite(), removeSiteByInternalId(), and removeSiteByNavigationId().
|
protected |
int | string | $index | |
Site | $site |
Reimplemented from GenericArrayObject.
Definition at line 77 of file SiteList.php.
References as, 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 164 of file SiteList.php.
References offsetUnset().
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.
integer | $id |
Definition at line 212 of file SiteList.php.
References offsetUnset().
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 249 of file SiteList.php.
References offsetUnset().
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 261 of file SiteList.php.
SiteList::unserialize | ( | $serialization | ) |
string | $serialization |
Reimplemented from GenericArrayObject.
Definition at line 341 of file SiteList.php.
Global site identifiers pointing to their sites offset value.
of string
Definition at line 45 of file SiteList.php.
Internal site identifiers pointing to their sites offset value.
of integer
Definition at line 37 of file SiteList.php.
Navigational site identifiers alias inter-language prefixes pointing to their sites offset value.
of string
Definition at line 54 of file SiteList.php.
const SiteList::SERIAL_VERSION_ID = '2014-03-17' |
Definition at line 297 of file SiteList.php.