Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\PageInfoProvider Class Reference
Collaboration diagram for SMW\MediaWiki\PageInfoProvider:
Collaboration graph
[legend]

Public Member Functions

 __construct (WikiPage $wikiPage, Revision $revision=null, User $user=null)
 
 getModificationDate ()
 
 getCreationDate ()
 
 isNewPage ()
 
 getLastEditor ()
 
 isFilePage ()
 
 getMediaType ()
 
 getMimeType ()
 

Detailed Description

Provide access to MediaWiki objects relevant for the predefined property annotation process

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\PageInfoProvider::__construct ( WikiPage  $wikiPage,
Revision  $revision = null,
User  $user = null 
)
Since
1.9
Parameters
WikiPage$wikiPage
Revision | null$revision
User | null$user

Member Function Documentation

SMW\MediaWiki\PageInfoProvider::getCreationDate ( )
Note
getFirstRevision() is expensive as it initiates a read on the revision table which is not cached
Since
1.9
Returns
integer

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::getLastEditor ( )
Since
1.9
Returns
Title

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::getMediaType ( )
Since
1.9.1
Returns
string|null

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::getMimeType ( )
Since
1.9.1
Returns
string|null

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::getModificationDate ( )
Since
1.9
Returns
integer

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::isFilePage ( )
Since
1.9.1
Returns
boolean

Implements SMW\PageInfo.

SMW\MediaWiki\PageInfoProvider::isNewPage ( )
Note
Using isNewPage() is expensive due to access to the database
Since
1.9
Returns
boolean

Implements SMW\PageInfo.


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