function getQueryInfo() { $info = parent::getQueryInfo(); $info['conds']['cr_status'] = $this->mStatus; // FIXME: normalize input? return $info; }
function getQueryInfo() { $info = parent::getQueryInfo(); $info['conds']['cr_author'] = $this->mAuthor; // fixme: normalize input? return $info; }
function getQueryInfo() { $info = parent::getQueryInfo(); if ($this->mView->mPath) { array_unshift($info['tables'], 'code_paths'); $info['conds'][] = 'cr_repo_id=cp_repo_id'; $info['conds'][] = 'cr_id=cp_rev_id'; $info['conds']['cp_path'] = $this->mView->mPath; } //Don't change table order, see http://www.mediawiki.org/wiki/Special:Code/MediaWiki/77733 //Bug in mysql 4 allowed incorrect table ordering joins to work array_unshift($info['tables'], 'code_tags'); $info['conds'][] = 'cr_repo_id=ct_repo_id'; $info['conds'][] = 'cr_id=ct_rev_id'; $info['conds']['ct_tag'] = $this->mTag; // fixme: normalize input? return $info; }
/** * @param SvnRevTablePager $pager * @return string */ protected function buildBatchInterface($pager) { global $wgUser; $changeFields = array(); if ($wgUser->isAllowed('codereview-set-status')) { $changeFields['code-batch-status'] = Xml::tags('select', array('name' => 'wpStatus'), Xml::tags('option', array('value' => '', 'selected' => 'selected'), ' ') . CodeRevisionView::buildStatusList(null, $this)); } if ($wgUser->isAllowed('codereview-add-tag')) { $changeFields['code-batch-tags'] = CodeRevisionView::addTagForm('', ''); } if (!count($changeFields)) { return ''; // nothing to do here } $changeInterface = Xml::fieldset(wfMsg('codereview-batch-title'), Xml::buildForm($changeFields, 'codereview-batch-submit')); $changeInterface .= $pager->getHiddenFields(); $changeInterface .= Html::hidden('wpBatchChangeEditToken', $wgUser->editToken()); return $changeInterface; }