Inherited by CreativeCommonsRdf, and DublinCoreRdf.
Public Member Functions | |
| __construct (Article $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 | |
| setup () | |
| reallyFullUrl () | |
| basics () | |
| element ($name, $value) | |
| date ($timestamp) | |
| pageOrString ($name, $page, $str) | |
| page ($name, $title) | |
| url ($name, $url) | |
| person ($name, User $user) | |
| rights () | |
| Takes an arg, for future enhancement with different rights for different pages. | |
| getTerms ($url) | |
| getKnownLicenses () | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Definition at line 23 of file Metadata.php.
| RdfMetaData::__construct | ( | Article $ | article | ) |
| RdfMetaData::basics | ( | ) | [protected] |
Definition at line 63 of file Metadata.php.
References $user, $wgContLanguageCode, $wgSitename, date(), element(), User::newFromId(), pageOrString(), person(), reallyFullUrl(), rights(), and wfMsg().
Referenced by CreativeCommonsRdf::show(), and DublinCoreRdf::show().
| RdfMetaData::date | ( | $ | timestamp | ) | [protected] |
| RdfMetaData::element | ( | $ | name, | |
| $ | value | |||
| ) | [protected] |
Definition at line 84 of file Metadata.php.
References print.
Referenced by basics(), pageOrString(), person(), and rights().
| RdfMetaData::getKnownLicenses | ( | ) | [protected] |
| RdfMetaData::getTerms | ( | $ | url | ) | [protected] |
Definition at line 146 of file Metadata.php.
References $url, and getKnownLicenses().
Referenced by CreativeCommonsRdf::show().
| RdfMetaData::page | ( | $ | name, | |
| $ | title | |||
| ) | [protected] |
Definition at line 108 of file Metadata.php.
References $name, $title, and url().
Referenced by pageOrString(), and rights().
| RdfMetaData::pageOrString | ( | $ | name, | |
| $ | page, | |||
| $ | str | |||
| ) | [protected] |
Definition at line 95 of file Metadata.php.
References $name, $page, element(), Title::newFromText(), and page().
| RdfMetaData::person | ( | $ | name, | |
| User $ | user | |||
| ) | [protected] |
Definition at line 117 of file Metadata.php.
References $name, $wgContLang, element(), User::getName(), User::getRealName(), User::getUserPage(), User::isAnon(), pageOrString(), wfMsg(), and wfMsgExt().
Referenced by basics().
| RdfMetaData::reallyFullUrl | ( | ) | [protected] |
Definition at line 59 of file Metadata.php.
Referenced by basics(), DublinCoreRdf::prologue(), and CreativeCommonsRdf::show().
| RdfMetaData::rights | ( | ) | [protected] |
Takes an arg, for future enhancement with different rights for different pages.
Definition at line 133 of file Metadata.php.
References $wgRightsPage, $wgRightsText, $wgRightsUrl, element(), Title::newFromText(), page(), and url().
Referenced by basics().
| RdfMetaData::setup | ( | ) | [protected] |
Definition at line 39 of file Metadata.php.
References $_SERVER, $wgOut, $wgRequest, wfAcceptToPrefs(), wfHttpError(), wfMsg(), and wfNegotiateType().
Referenced by CreativeCommonsRdf::show(), and DublinCoreRdf::show().
| RdfMetaData::show | ( | ) | [abstract] |
Reimplemented in DublinCoreRdf, and CreativeCommonsRdf.
| 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 24 of file Metadata.php.
1.5.9