Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\SQLStore\RedirectInfoStore Class Reference

Public Member Functions

 __construct (Database $connection)
 
 findRedirectIdFor ($title, $namespace)
 
 addRedirectForId ($id, $title, $namespace)
 
 deleteRedirectEntry ($title, $namespace)
 

Public Attributes

const TABLENAME = 'smw_fpt_redi'
 

Detailed Description

GNU GPL v2+

Since
2.1
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\RedirectInfoStore::__construct ( Database  $connection)
Since
2.1
Parameters
Database$connection

Member Function Documentation

SMW\SQLStore\RedirectInfoStore::addRedirectForId (   $id,
  $title,
  $namespace 
)
Since
2.1
Parameters
integer$id
string$title
integer$namespace
SMW\SQLStore\RedirectInfoStore::deleteRedirectEntry (   $title,
  $namespace 
)
Since
2.1
Parameters
string$title
integer$namespace
SMW\SQLStore\RedirectInfoStore::findRedirectIdFor (   $title,
  $namespace 
)

Returns an id for a redirect if no redirect is found 0 is returned

Since
2.1
Parameters
string$titleDB key
integer$namespace
Returns
integer

Member Data Documentation

const SMW\SQLStore\RedirectInfoStore::TABLENAME = 'smw_fpt_redi'

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