MediaWiki
REL1_39
LinkTargetLookup.php
Go to the documentation of this file.
1
<?php
20
namespace
MediaWiki\Linker
;
21
22
use RuntimeException;
23
use stdClass;
24
use
Wikimedia\Rdbms\IDatabase
;
25
29
interface
LinkTargetLookup
{
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
}
MediaWiki\Linker\LinkTargetLookup
Definition
LinkTargetLookup.php:29
MediaWiki\Linker\LinkTargetLookup\newLinkTargetFromRow
newLinkTargetFromRow(stdClass $row)
Instantiate a new LinkTarget object based on a $row from the linktarget table.
MediaWiki\Linker\LinkTargetLookup\getLinkTargetId
getLinkTargetId(LinkTarget $linkTarget)
Return link target id if exists.
MediaWiki\Linker\LinkTargetLookup\getLinkTargetById
getLinkTargetById(int $linkTargetId)
Find an link target by $id.
MediaWiki\Linker\LinkTargetLookup\acquireLinkTargetId
acquireLinkTargetId(LinkTarget $linkTarget, IDatabase $dbw)
Attempt to assign an link target ID to the given $linkTarget.
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition
IDatabase.php:39
MediaWiki\Linker
includes
linker
LinkTargetLookup.php
Generated on Tue Oct 1 2024 01:45:11 for MediaWiki by
1.10.0