RdfMetaData Class Reference

Metadata.php -- provides DublinCore and CreativeCommons metadata Copyright 2004, Evan Prodromou <evan@wikitravel.org>. More...

Inherited by CreativeCommonsRdf, and DublinCoreRdf.

List of all members.

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 ()


Detailed Description

Metadata.php -- provides DublinCore and CreativeCommons metadata Copyright 2004, Evan Prodromou <evan@wikitravel.org>.

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

Author:
Evan Prodromou <evan@wikitravel.org>

Definition at line 23 of file Metadata.php.


Constructor & Destructor Documentation

RdfMetaData::__construct ( Article article  ) 

Constructor.

Parameters:
$article Article object

Definition at line 30 of file Metadata.php.


Member Function Documentation

RdfMetaData::basics (  )  [protected]

RdfMetaData::date ( timestamp  )  [protected]

Definition at line 89 of file Metadata.php.

Referenced by basics().

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]

Definition at line 161 of file Metadata.php.

References $version.

Referenced by getTerms().

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().

Referenced by basics(), and person().

RdfMetaData::person ( name,
User user 
) [protected]

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]

RdfMetaData::show (  )  [abstract]

Reimplemented in DublinCoreRdf, and CreativeCommonsRdf.

RdfMetaData::url ( name,
url 
) [protected]

Definition at line 112 of file Metadata.php.

References $url, and print.

Referenced by page(), and rights().


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:45 2009 for MediaWiki by  doxygen 1.5.9