MediaWiki
REL1_19
|
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 24 of file Metadata.php.
RdfMetaData::__construct | ( | Page $ | article | ) |
RdfMetaData::basics | ( | ) | [protected] |
Definition at line 57 of file Metadata.php.
References $user, $wgLanguageCode, $wgSitename, date(), element(), User\newFromId(), pageOrString(), person(), reallyFullUrl(), rights(), and wfMsg().
RdfMetaData::date | ( | $ | timestamp | ) | [protected] |
Definition at line 83 of file Metadata.php.
Referenced by basics().
RdfMetaData::element | ( | $ | name, |
$ | value | ||
) | [protected] |
Definition at line 78 of file Metadata.php.
References print.
Referenced by basics(), pageOrString(), person(), and rights().
RdfMetaData::getKnownLicenses | ( | ) | [protected] |
Definition at line 162 of file Metadata.php.
References $license, and $version.
Referenced by getTerms().
RdfMetaData::getTerms | ( | $ | url | ) | [protected] |
Definition at line 147 of file Metadata.php.
References $url, $wgLicenseTerms, and getKnownLicenses().
RdfMetaData::page | ( | $ | name, |
$ | title | ||
) | [protected] |
$name | string |
$title | Title |
Definition at line 107 of file Metadata.php.
Referenced by pageOrString(), and rights().
RdfMetaData::pageOrString | ( | $ | name, |
$ | page, | ||
$ | str | ||
) | [protected] |
Definition at line 89 of file Metadata.php.
References $page, element(), Title\newFromText(), and page().
Referenced by basics(), and person().
RdfMetaData::person | ( | $ | name, |
User $ | user | ||
) | [protected] |
Definition at line 116 of file Metadata.php.
References element(), User\getName(), User\getRealName(), User\getUserPage(), User\isAnon(), pageOrString(), and wfMsgExt().
Referenced by basics().
RdfMetaData::reallyFullUrl | ( | ) | [protected] |
Definition at line 53 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 134 of file Metadata.php.
References $wgRightsPage, $wgRightsText, $wgRightsUrl, element(), Title\newFromText(), page(), and url().
Referenced by basics().
RdfMetaData::setup | ( | ) | [protected] |
Definition at line 37 of file Metadata.php.
References $wgOut, 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 25 of file Metadata.php.