MediaWiki
REL1_22
|
Public Member Functions | |
__construct (Page $article) | |
Constructor. | |
show () | |
Public Attributes | |
const | RDF_TYPE_PREFS = 'application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1' |
Protected Member Functions | |
basics () | |
date ($timestamp) | |
element ($name, $value) | |
getKnownLicenses () | |
getTerms ($url) | |
page ($name, $title) | |
pageOrString ($name, $page, $str) | |
person ($name, User $user) | |
reallyFullUrl () | |
rights () | |
Takes an arg, for future enhancement with different rights for different pages. | |
setup () | |
url ($name, $url) |
Definition at line 26 of file Metadata.php.
RdfMetaData::__construct | ( | Page $ | article | ) |
Constructor.
$article | Article object |
Definition at line 33 of file Metadata.php.
References $article.
RdfMetaData::basics | ( | ) | [protected] |
Definition at line 59 of file Metadata.php.
References $user, as, date(), element(), global, User\newFromId(), pageOrString(), person(), reallyFullUrl(), rights(), text, and wfMessage().
RdfMetaData::date | ( | $ | timestamp | ) | [protected] |
RdfMetaData::element | ( | $ | name, |
$ | value | ||
) | [protected] |
Definition at line 80 of file Metadata.php.
Referenced by basics(), pageOrString(), person(), and rights().
RdfMetaData::getKnownLicenses | ( | ) | [protected] |
Definition at line 170 of file Metadata.php.
References $license, array(), and as.
Referenced by getTerms().
RdfMetaData::getTerms | ( | $ | url | ) | [protected] |
Definition at line 155 of file Metadata.php.
References array(), getKnownLicenses(), and global.
RdfMetaData::page | ( | $ | name, |
$ | title | ||
) | [protected] |
$name | string |
$title | Title |
Definition at line 109 of file Metadata.php.
References $name, $title, and url().
Referenced by pageOrString(), and rights().
RdfMetaData::pageOrString | ( | $ | name, |
$ | page, | ||
$ | str | ||
) | [protected] |
Definition at line 91 of file Metadata.php.
References $name, element(), Title\newFromText(), and page().
RdfMetaData::person | ( | $ | name, |
User $ | user | ||
) | [protected] |
Definition at line 118 of file Metadata.php.
References $name, element(), User\getName(), User\getRealName(), User\getUserPage(), global, User\isAnon(), pageOrString(), text, and wfMessage().
Referenced by basics().
RdfMetaData::reallyFullUrl | ( | ) | [protected] |
Definition at line 55 of file Metadata.php.
Referenced by basics().
RdfMetaData::rights | ( | ) | [protected] |
Takes an arg, for future enhancement with different rights for different pages.
Definition at line 142 of file Metadata.php.
References element(), global, Title\newFromText(), page(), and url().
Referenced by basics().
RdfMetaData::setup | ( | ) | [protected] |
Definition at line 39 of file Metadata.php.
References $wgOut, global, wfAcceptToPrefs(), wfMessage(), and wfNegotiateType().
RdfMetaData::show | ( | ) | [abstract] |
RdfMetaData::url | ( | $ | name, |
$ | url | ||
) | [protected] |
const RdfMetaData::RDF_TYPE_PREFS = 'application/rdf+xml,text/xml;q=0.7,application/xml;q=0.5,text/rdf;q=0.1' |
Definition at line 27 of file Metadata.php.