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