Go to the documentation of this file.
71 throw new InvalidArgumentException(
'$namespace must be an integer' );
74 if ( !is_string(
$dbkey ) ) {
75 throw new InvalidArgumentException(
'$dbkey must be a string' );
79 if ( preg_match(
'/^_|[ \r\n\t]|_$/',
$dbkey ) ) {
80 throw new InvalidArgumentException(
'$dbkey must be a valid DB key: ' .
$dbkey );
84 throw new InvalidArgumentException(
'$fragment must be a string' );
88 throw new InvalidArgumentException(
'$dbkey must not be empty' );
132 return str_replace(
'_',
' ', $this->
getDBkey() );
154 $name = $this->
namespace . ':' . $this->dbkey;
156 if ( $this->fragment !== '' ) {
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getDBkey()
Returns the title's DB key, as supplied to the constructor, without namespace prefix or fragment.
__toString()
Returns a string representation of the title, for logging.
Allows to change the fields on the form that will be generated $name
getText()
Returns the title in text form, without namespace prefix or fragment.
__construct( $namespace, $dbkey, $fragment='')
Constructs a TitleValue.
createFragmentTitle( $fragment)
Creates a new TitleValue for a different fragment of the same page.
if(!function_exists('version_compare')||version_compare(phpversion(), '5.3.2')< 0)
Represents a page (or page fragment) title within MediaWiki.