ChangeTags Class Reference

List of all members.

Static Public Member Functions

static formatSummaryRow ($tags, $page)
static tagDescription ($tag)
static addTags ($tags, $rc_id=null, $rev_id=null, $log_id=null, $params=null)
static modifyDisplayQuery (&$tables, &$fields, &$conds, &$join_conds, &$options, $filter_tag=false)
 Applies all tags-related changes to a query.
static buildTagFilterSelector ($selected='', $fullForm=false)
 If $fullForm is set to false, then it returns an array of (label, form).
static listDefinedTags ()
 Basically lists defined tags which count even if they aren't applied to anything.


Detailed Description

Definition at line 6 of file ChangeTags.php.


Member Function Documentation

static ChangeTags::addTags ( tags,
rc_id = null,
rev_id = null,
log_id = null,
params = null 
) [static]

Definition at line 39 of file ChangeTags.php.

References $dbr, $dbw, and wfGetDB().

static ChangeTags::buildTagFilterSelector ( selected = '',
fullForm = false 
) [static]

If $fullForm is set to false, then it returns an array of (label, form).

If $fullForm is true, it returns an entire form.

Definition at line 157 of file ChangeTags.php.

References $wgTitle, $wgUseTagFilter, Xml::element(), Xml::hidden(), Xml::input(), Xml::tags(), wfMsg(), and wfMsgExt().

Referenced by SpecialNewpages::form(), SpecialRecentchangeslinked::getExtraOptions(), SpecialRecentChanges::getExtraOptions(), SpecialContributions::getForm(), HistoryPage::history(), and LogEventsList::showOptions().

static ChangeTags::formatSummaryRow ( tags,
page 
) [static]

static ChangeTags::listDefinedTags (  )  [static]

Basically lists defined tags which count even if they aren't applied to anything.

Definition at line 180 of file ChangeTags.php.

References $dbr, $res, $wgMemc, wfGetDB(), wfMemcKey(), and wfRunHooks().

Referenced by SpecialTags::execute(), and ApiQueryTags::execute().

static ChangeTags::modifyDisplayQuery ( &$  tables,
&$  fields,
&$  conds,
&$  join_conds,
&$  options,
filter_tag = false 
) [static]

Applies all tags-related changes to a query.

Handles selecting tags, and filtering. Needs $tables to be set up properly, so we can figure out which join conditions to use.

Definition at line 113 of file ChangeTags.php.

References $options, $wgOldChangeTagsIndex, $wgRequest, and $wgUseTagFilter.

Referenced by SpecialRecentchangeslinked::doMainQuery(), SpecialRecentChanges::doMainQuery(), NewPagesPager::getQueryInfo(), ContribsPager::getQueryInfo(), LogPager::getQueryInfo(), HistoryPager::getQueryInfo(), and wfSpecialWatchlist().

static ChangeTags::tagDescription ( tag  )  [static]

Definition at line 30 of file ChangeTags.php.

References $msg, wfEmptyMsg(), and wfMsgExt().

Referenced by ApiQueryTags::doTag(), and SpecialTags::doTagRow().


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

Generated on Sat Apr 30 22:57:33 2011 for MediaWiki by  doxygen 1.5.9