MediaWiki REL1_39
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 an link target by $id.
acquireLinkTargetId(LinkTarget $linkTarget, IDatabase $dbw)
Attempt to assign an link target ID to the given $linkTarget.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:39