Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | List of all members
SMW\MediaWiki\TitleLookup Class Reference

Public Member Functions

 __construct (Database $connection)
 
 setNamespace ($namespace)
 
 selectAll ()
 
 getRedirectPages ()
 
 selectByIdRange ($startId=0, $endId=0)
 
 getMaxId ()
 

Protected Member Functions

 makeTitlesFromSelection ($res)
 

Detailed Description

A convenience class to encapsulate MW related database interaction

Note
This is an internal class and should not be used outside of smw-core

GNU GPL v2+

Since
1.9.2
Author
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\TitleLookup::__construct ( Database  $connection)
Since
1.9.2
Parameters
Database$connection

Member Function Documentation

SMW\MediaWiki\TitleLookup::getMaxId ( )
Since
1.9.2
Returns
int
SMW\MediaWiki\TitleLookup::getRedirectPages ( )
Since
2.4
Returns
Title[]
SMW\MediaWiki\TitleLookup::makeTitlesFromSelection (   $res)
protected
SMW\MediaWiki\TitleLookup::selectAll ( )
Since
1.9.2
Returns
Title[]
Exceptions
RuntimeException
SMW\MediaWiki\TitleLookup::selectByIdRange (   $startId = 0,
  $endId = 0 
)
Since
1.9.2
Parameters
int$startId
int$endId
Returns
Title[]
Exceptions
RuntimeException
SMW\MediaWiki\TitleLookup::setNamespace (   $namespace)
Since
1.9.2
Parameters
int$namespace
Returns
TitleLookup

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