MediaWiki master
LinkTargetLookup.php
Go to the documentation of this file.
1<?php
6namespace MediaWiki\Linker;
7
8use RuntimeException;
9use stdClass;
11
29 public function newLinkTargetFromRow( stdClass $row ): LinkTarget;
30
37 public function getLinkTargetById( int $linkTargetId ): ?LinkTarget;
38
52 public function acquireLinkTargetId( LinkTarget $linkTarget, IDatabase $dbw ): int;
53
60 public function getLinkTargetId( LinkTarget $linkTarget ): ?int;
61
62}
newLinkTargetFromRow(stdClass $row)
Instantiate a new LinkTarget object based on a $row from the linktarget table.
getLinkTargetId(LinkTarget $linkTarget)
Return link target id if exists.
getLinkTargetById(int $linkTargetId)
Find a link target by $id.
acquireLinkTargetId(LinkTarget $linkTarget, IDatabase $dbw)
Attempt to assign an link target ID to the given $linkTarget.
Represents the target of a wiki link.
Interface to a relational database.
Definition IDatabase.php:31