Fix use of RawMessage in Status::getMessage()
[mediawiki.git] / includes / LinkTarget.php
blob175a8392a856c539e5f8345e3a7e1c927e8177e0
1 <?php
3 /**
4 * @author Addshore
6 * @since 1.27
7 */
8 interface LinkTarget {
10 /**
11 * Get the namespace index.
13 * @return int Namespace index
15 public function getNamespace();
17 /**
18 * Get the link fragment (i.e. the bit after the #) in text form.
20 * @return string link fragment
22 public function getFragment();
24 /**
25 * Get the main part with underscores.
27 * @return string Main part of the link, with underscores (for use in href attributes)
29 public function getDBkey();
31 /**
32 * Returns the link in text form, without namespace prefix or fragment.
34 * This is computed from the DB key by replacing any underscores with spaces.
36 * @return string
38 public function getText();