MediaWiki master
LinkTargetLookup.php
Go to the documentation of this file.
1<?php
20namespace MediaWiki\Linker;
21
22use RuntimeException;
23use stdClass;
25
43 public function newLinkTargetFromRow( stdClass $row ): LinkTarget;
44
51 public function getLinkTargetById( int $linkTargetId ): ?LinkTarget;
52
66 public function acquireLinkTargetId( LinkTarget $linkTarget, IDatabase $dbw ): int;
67
74 public function getLinkTargetId( LinkTarget $linkTarget ): ?int;
75
76}
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:48