Unordered collection of SiteLink objects.
More...
Unordered collection of SiteLink objects.
SiteLink objects can be accessed by site id. Only one SiteLink per site id can exist in the collection.
- Since
- 0.7
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ __construct()
Wikibase\DataModel\SiteLinkList::__construct |
( |
|
$siteLinks = [] | ) |
|
- Parameters
-
iterable | SiteLink[] | $siteLinks | Can be a non-array iterable since 8.1 |
- Exceptions
-
◆ addNewSiteLink()
Wikibase\DataModel\SiteLinkList::addNewSiteLink |
( |
|
$siteId, |
|
|
|
$pageName, |
|
|
|
$badges = null |
|
) |
| |
- See also
- SiteLink::__construct
- Since
- 0.8
- Parameters
-
string | $siteId | |
string | $pageName | |
ItemIdSet | ItemId[] | null | $badges | |
- Exceptions
-
◆ addSiteLink()
Wikibase\DataModel\SiteLinkList::addSiteLink |
( |
SiteLink |
$link | ) |
|
- Since
- 0.8
- Parameters
-
- Exceptions
-
◆ count()
Wikibase\DataModel\SiteLinkList::count |
( |
| ) |
|
- See also
- Countable::count
- Returns
- int
◆ equals()
Wikibase\DataModel\SiteLinkList::equals |
( |
|
$target | ) |
|
- Since
- 0.7.4
- Parameters
-
- Returns
- bool
◆ getBySiteId()
Wikibase\DataModel\SiteLinkList::getBySiteId |
( |
|
$siteId | ) |
|
- Parameters
-
- Returns
- SiteLink
- Exceptions
-
OutOfBoundsException | |
InvalidArgumentException | |
◆ getIterator()
Wikibase\DataModel\SiteLinkList::getIterator |
( |
| ) |
|
- See also
- IteratorAggregate::getIterator
Returns an Iterator of SiteLink in which the keys are the site ids.
- Returns
- Iterator|SiteLink[]
◆ hasLinkWithSiteId()
Wikibase\DataModel\SiteLinkList::hasLinkWithSiteId |
( |
|
$siteId | ) |
|
- Since
- 0.8
- Parameters
-
- Returns
- boolean
- Exceptions
-
◆ isEmpty()
Wikibase\DataModel\SiteLinkList::isEmpty |
( |
| ) |
|
◆ removeLinkWithSiteId()
Wikibase\DataModel\SiteLinkList::removeLinkWithSiteId |
( |
|
$siteId | ) |
|
- Since
- 0.8
- Parameters
-
- Exceptions
-
◆ setNewSiteLink()
Wikibase\DataModel\SiteLinkList::setNewSiteLink |
( |
|
$siteId, |
|
|
|
$pageName, |
|
|
|
$badges = null |
|
) |
| |
- Since
- 2.5
- Parameters
-
string | $siteId | |
string | $pageName | |
ItemIdSet | ItemId[] | null | $badges | |
◆ setSiteLink()
Wikibase\DataModel\SiteLinkList::setSiteLink |
( |
SiteLink |
$link | ) |
|
◆ toArray()
Wikibase\DataModel\SiteLinkList::toArray |
( |
| ) |
|
- Since
- 2.5
- Returns
- SiteLink[] Array indexed by site id.
◆ $siteLinks
Wikibase\DataModel\SiteLinkList::$siteLinks = [] |
|
private |
The documentation for this class was generated from the following file: