wiki.techinc.nl/includes/LinkTarget.php
aude 072fdb9109 Fix typo and improve code comments in LinkTarget
Change-Id: I53cd07fafd00ded65e2657db96f94170013abed8
2016-02-15 12:56:25 +01:00

40 lines
725 B
PHP

<?php
/**
* @author Addshore
*
* @since 1.27
*/
interface LinkTarget {
/**
* Get the namespace index.
*
* @return int Namespace index
*/
public function getNamespace();
/**
* Get the link fragment (i.e. the bit after the #) in text form.
*
* @return string link fragment
*/
public function getFragment();
/**
* Get the main part with underscores.
*
* @return string Main part of the link, with underscores (for use in href attributes)
*/
public function getDBkey();
/**
* Returns the link in text form, without namespace prefix or fragment.
*
* This is computed from the DB key by replacing any underscores with spaces.
*
* @return string
*/
public function getText();
}