コード例 #1
0
 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'));
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     if ($this->forceDefaultLimit > 0) {
         list($this->mLimit, ) = $this->mRequest->getLimitOffset($this->forceDefaultLimit, '');
     }
 }
コード例 #3
0
 /**
  * @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());
 }
コード例 #4
0
ファイル: EPPager.php プロジェクト: schwarer2006/wikia
 /**
  * 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');
 }
コード例 #5
0
 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();
 }
コード例 #6
0
 /**
  * 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');
 }
コード例 #7
0
 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());
 }
コード例 #8
0
 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);
 }
コード例 #9
0
 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);
 }
コード例 #11
0
 function getSortHeaderClass()
 {
     return 'imagelist_sort ' . parent::getSortHeaderClass();
 }
コード例 #12
0
	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);
 }
コード例 #14
0
 public function getTableClass()
 {
     return parent::getTableClass() . ' mw-blocklist';
 }
コード例 #15
0
ファイル: CodeView.php プロジェクト: yusufchang/app
 function getStartBody()
 {
     global $wgOut;
     $wgOut->addModules('ext.codereview.overview');
     return parent::getStartBody();
 }
コード例 #16
0
 /**
  * __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);
 }
コード例 #17
0
	function getDefaultQuery() {
		$query = parent::getDefaultQuery() + $this->mQuery->getDefaultQuery();
		$query['view'] = 'archives';
		return $query;
	}
コード例 #18
0
	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 );
	}
コード例 #19
0
 /**
  * constructor
  */
 function __construct()
 {
     global $wgExternalSharedDB;
     $this->mTitle = Title::makeTitle(NS_SPECIAL, "TaskManager");
     $this->mDefaultDirection = true;
     parent::__construct();
     $this->mDb = wfGetDB(DB_SLAVE, array(), $wgExternalSharedDB);
 }
コード例 #20
0
	function __construct( $detailsPage, $voteId ) {
		$this->detailsPage = $detailsPage;
		$this->voteId = $voteId;
		parent::__construct();
	}
コード例 #21
0
 function getSortHeaderClass()
 {
     return 'listfiles_sort ' . parent::getSortHeaderClass();
 }
コード例 #22
0
 /**
  * __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();
 }
コード例 #23
0
	function __construct( $listPage ) {
		global $wgUser;
		$this->listPage = $listPage;
		$this->election = $listPage->election;
		$this->isAdmin = $this->election->isAdmin( $wgUser );
		parent::__construct();
	}
コード例 #24
0
 /**
  * @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);
 }
コード例 #26
0
 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';
 }
コード例 #28
0
 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 = '&#160;';
         }
         $s .= Xml::tags('td', $this->getCellAttrs('am_actual', $row->am_actual), $formatted) . "</tr>\n";
     }
     return $s;
 }
コード例 #29
0
 public function getTableClass()
 {
     return parent::getTableClass() . ' mw-protectedpages';
 }
コード例 #30
0
 function __construct($page, $conds)
 {
     $this->mPage = $page;
     $this->mConds = $conds;
     parent::__construct($this->mPage->getContext());
 }