MediaWiki
master
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 a 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
Represents the target of a wiki link.
Definition
LinkTarget.php:33
Wikimedia\Rdbms\IDatabase
Interface to a relational database.
Definition
IDatabase.php:48
MediaWiki\Linker
includes
linker
LinkTargetLookup.php
Generated on Thu Nov 7 2024 08:24:45 for MediaWiki by
1.10.0