function __construct($view, $thread) { parent::__construct(); $this->thread = $thread; $this->view = $view; self::$change_names = array(Threads::CHANGE_EDITED_ROOT => wfMsgNoTrans('lqt_hist_comment_edited'), Threads::CHANGE_EDITED_SUMMARY => wfMsgNoTrans('lqt_hist_summary_changed'), Threads::CHANGE_REPLY_CREATED => wfMsgNoTrans('lqt_hist_reply_created'), Threads::CHANGE_NEW_THREAD => wfMsgNoTrans('lqt_hist_thread_created'), Threads::CHANGE_DELETED => wfMsgNoTrans('lqt_hist_deleted'), Threads::CHANGE_UNDELETED => wfMsgNoTrans('lqt_hist_undeleted'), Threads::CHANGE_MOVED_TALKPAGE => wfMsgNoTrans('lqt_hist_moved_talkpage'), Threads::CHANGE_EDITED_SUBJECT => wfMsgNoTrans('lqt_hist_edited_subject'), Threads::CHANGE_SPLIT => wfMsgNoTrans('lqt_hist_split'), Threads::CHANGE_MERGED_FROM => wfMsgNoTrans('lqt_hist_merged_from'), Threads::CHANGE_MERGED_TO => wfMsgNoTrans('lqt_hist_merged_to'), Threads::CHANGE_SPLIT_FROM => wfMsgNoTrans('lqt_hist_split_from'), Threads::CHANGE_ROOT_BLANKED => wfMsgNoTrans('lqt_hist_root_blanked'), Threads::CHANGE_ADJUSTED_SORTKEY => wfMsgNoTrans('lqt_hist_adjusted_sortkey')); }
public function __construct() { parent::__construct(); if ($this->forceDefaultLimit > 0) { list($this->mLimit, ) = $this->mRequest->getLimitOffset($this->forceDefaultLimit, ''); } }
/** * @param $filter * @param $page ContextSource * @param $user string User name */ function __construct($filter, $page, $user) { $this->mFilter = $filter; $this->mPage = $page; $this->mUser = $user; $this->mDefaultDirection = true; parent::__construct($this->mPage->getContext()); }
/** * Constructor. * * @param IContextSource $context * @param array $conds * @param string $className */ public function __construct(IContextSource $context, array $conds, $className) { $this->conds = $conds; $this->className = $className; $this->context = $context; $this->mDefaultDirection = true; parent::__construct($context); $this->context->getOutput()->addModules('ep.pager'); }
function __construct($attachToPage, $attachmentName = NULL) { global $wgScriptPath; global $wgPageAttachment_imgAddUpdateAttachment; parent::__construct(); $this->attachToPage = $attachToPage; $this->attachmentName = $attachmentName; $this->userManager = new \PageAttachment\User\UserManager(); $this->cacheManager = new \PageAttachment\Cache\CacheManager(); $this->dateHelper = new \PageAttachment\Utility\DateUtil(); }
/** * Constructor. * * @param IContextSource $context * @param array $conds * @param string $className */ public function __construct(IContextSource $context, array $conds, $className) { $this->conds = $conds; $this->className = $className; $this->context = $context; $this->mDefaultDirection = true; if (method_exists('TablePager', 'getUser')) { parent::__construct($context); } else { parent::__construct(); } $this->context->getOutput()->addModules('ep.pager'); }
function __construct($form, $conds = array(), $type, $level, $namespace, $sizetype = '', $size = 0, $indefonly = false, $cascadeonly = false, $noredirect = false) { $this->mForm = $form; $this->mConds = $conds; $this->type = $type ? $type : 'edit'; $this->level = $level; $this->namespace = $namespace; $this->sizetype = $sizetype; $this->size = intval($size); $this->indefonly = (bool) $indefonly; $this->cascadeonly = (bool) $cascadeonly; $this->noredirect = (bool) $noredirect; parent::__construct($form->getContext()); }
function __construct($formData) { global $wgExternalSharedDB; $this->mTitle = Title::makeTitle(NS_SPECIAL, 'SiteWideMessages'); $this->mDefaultDirection = true; $this->never = explode(',', wfMsg('swm-days')); $this->never = $this->never[0]; $this->formData = $formData; parent::__construct(); $this->mDb = wfGetDB(DB_SLAVE, array(), $wgExternalSharedDB); }
protected function getTableClass() { return parent::getTableClass() . ' mw-blocklist'; }
function __construct($page, $conds) { global $wgExternalSharedDB; $this->mPage = $page; $this->mConds = $conds; parent::__construct($this->mPage->getContext()); $this->mDb = wfGetDB(DB_SLAVE, [], $wgExternalSharedDB); }
function getSortHeaderClass() { return 'imagelist_sort ' . parent::getSortHeaderClass(); }
function getDefaultQuery() { $queries = parent::getDefaultQuery(); if ( !isset( $queries['user'] ) && !is_null( $this->mUserName ) ) { $queries['user'] = $this->mUserName; } return $queries; }
/** * @param SpecialPage $owner Containing page * @param string $page Subpage * @param IContextSource $context */ public function __construct(SpecialPage $owner, $page, IContextSource $context = null) { $this->mOwner = $owner; $this->mPage = $page; $this->mDb = CentralAuthUser::getCentralSlaveDB(); $this->setLimit(25); if ($this->showOpenRequests()) { $this->mDefaultDirection = self::DIR_ASCENDING; } else { $this->mDefaultDirection = self::DIR_DESCENDING; } parent::__construct($context); }
public function getTableClass() { return parent::getTableClass() . ' mw-blocklist'; }
function getStartBody() { global $wgOut; $wgOut->addModules('ext.codereview.overview'); return parent::getStartBody(); }
/** * __construct * * Public constructor with standard initializations * * @access public * @author Krzysztof Krzyżaniak <*****@*****.**> * * @param integer $wiki_id wiki identifier in wiki factory * */ function __construct($wiki_id = false) { if (is_numeric($wiki_id)) { $this->mTitle = Title::makeTitle(NS_SPECIAL, "WikiFactory/{$wiki_id}/clog"); $this->mWikiId = $wiki_id; } else { $this->mTitle = Title::makeTitle(NS_SPECIAL, "WikiFactory/change.log"); $this->mWikiId = false; } $this->mDefaultDirection = true; parent::__construct(); // BugId: 69197 - override parent behaviour to use database with correct data instead global $wgExternalSharedDB; $this->mDb = wfGetDB(DB_SLAVE, array(), $wgExternalSharedDB); }
function getDefaultQuery() { $query = parent::getDefaultQuery() + $this->mQuery->getDefaultQuery(); $query['view'] = 'archives'; return $query; }
function formatRow( $row ) { global $wgUser; $id = $row->el_entity; $this->election = $this->entryPage->context->getElection( $id ); if( !$this->election ) { $this->isAdmin = false; } else { $this->isAdmin = $this->election->isAdmin( $wgUser ); } return parent::formatRow( $row ); }
/** * constructor */ function __construct() { global $wgExternalSharedDB; $this->mTitle = Title::makeTitle(NS_SPECIAL, "TaskManager"); $this->mDefaultDirection = true; parent::__construct(); $this->mDb = wfGetDB(DB_SLAVE, array(), $wgExternalSharedDB); }
function __construct( $detailsPage, $voteId ) { $this->detailsPage = $detailsPage; $this->voteId = $voteId; parent::__construct(); }
function getSortHeaderClass() { return 'listfiles_sort ' . parent::getSortHeaderClass(); }
/** * __construct * * Public constructor with standard initializations * * @access public * @author Krzysztof Krzyżaniak <*****@*****.**> * * @param integer $wiki_id wiki identifier in wiki factory * */ function __construct($wiki_id = false) { if (is_numeric($wiki_id)) { $this->mTitle = Title::makeTitle(NS_SPECIAL, "WikiFactory/{$wiki_id}/clog"); $this->mWikiId = $wiki_id; } else { $this->mTitle = Title::makeTitle(NS_SPECIAL, "WikiFactory/change.log"); $this->mWikiId = false; } $this->mDefaultDirection = true; parent::__construct(); }
function __construct( $listPage ) { global $wgUser; $this->listPage = $listPage; $this->election = $listPage->election; $this->isAdmin = $this->election->isAdmin( $wgUser ); parent::__construct(); }
/** * @param $page SpecialPage * @param $conds Array */ function __construct($page, $conds) { $this->page = $page; $this->conds = $conds; $this->mDefaultDirection = true; parent::__construct($page->getContext()); }
public function formatRow($row) { if (!isset($this->users[$row->utr_name])) { // Hidden user or they don't exist locally? return ''; } return parent::formatRow($row); }
public function __construct(IContextSource $context = null) { parent::__construct($context); $this->mDb = wfGetDB(DB_SLAVE, array(), F::app()->wg->ExternalDatawareDB); $this->mainNamespaceText = $this->msg('blanknamespace')->inContentLanguage()->plain(); }
public function getTableClass() { return parent::getTableClass() . ' sortable'; }
function formatRow($row) { // Do all the normal stuff $s = parent::formatRow($row); // But if there's a customised message, add that too. if ($row->am_customised) { $s .= Xml::openElement('tr', $this->getRowAttrs($row, true)); $formatted = strval($this->formatValue('am_actual', $row->am_actual)); if ($formatted == '') { $formatted = ' '; } $s .= Xml::tags('td', $this->getCellAttrs('am_actual', $row->am_actual), $formatted) . "</tr>\n"; } return $s; }
public function getTableClass() { return parent::getTableClass() . ' mw-protectedpages'; }
function __construct($page, $conds) { $this->mPage = $page; $this->mConds = $conds; parent::__construct($this->mPage->getContext()); }