当前位置: 首页>>代码示例>>PHP>>正文


PHP ReverseChronologicalPager类代码示例

本文整理汇总了PHP中ReverseChronologicalPager的典型用法代码示例。如果您正苦于以下问题:PHP ReverseChronologicalPager类的具体用法?PHP ReverseChronologicalPager怎么用?PHP ReverseChronologicalPager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ReverseChronologicalPager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor.
  *
  * @param IContextSource $context
  * @param string $className
  * @param array $conds
  */
 public function __construct(IContextSource $context, array $conds = array())
 {
     $this->conds = $conds;
     $this->context = $context;
     $this->mDefaultDirection = true;
     if (method_exists('ReverseChronologicalPager', 'getUser')) {
         parent::__construct($context);
     } else {
         parent::__construct();
     }
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:18,代码来源:EPRevisionPager.php

示例2: array

 function __construct($specialPage, $searchConds, $y, $m)
 {
     parent::__construct();
     $this->getDateCond($y, $m);
     $this->searchConds = $searchConds ? $searchConds : array();
     $this->specialPage = $specialPage;
 }
开发者ID:reviforks,项目名称:miraheze-cw,代码行数:7,代码来源:RequestWikiQueuePager.php

示例3: array

 function __construct($form, $conds = array(), $title)
 {
     $this->mForm = $form;
     $this->mConds = $conds;
     $this->pageID = $title->getArticleID();
     parent::__construct();
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:7,代码来源:ReviewedVersions_body.php

示例4:

 /**
  * Construct instance of class.
  * @param $special object calling object
  * @param $type string type of log - 'bannercontent' or 'bannermessages' (optional)
  */
 function __construct($special, $type = 'bannercontent')
 {
     $this->special = $special;
     parent::__construct();
     $this->viewPage = SpecialPage::getTitleFor('NoticeTemplate', 'view');
     $this->logType = $type;
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:12,代码来源:CentralNoticePageLogPager.php

示例5: array

 function __construct(IContextSource $context = null)
 {
     parent::__construct($context);
     // Override the defaults
     $this->mLimitsShown = array(10, 20);
     $this->mDefaultLimit = 10;
     $this->mLimit = 10;
 }
开发者ID:aag,项目名称:mwakismet,代码行数:8,代码来源:AkismetEditPager.class.php

示例6: wfGetDB

 function __construct()
 {
     global $wgSpecialsDB;
     parent::__construct();
     $this->mDb = wfGetDB(DB_SLAVE, array(), $wgSpecialsDB);
     // create a Linker object so we don't have to create it every time in formatRow
     $this->linker = new Linker();
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:8,代码来源:SearchDigest.class.php

示例7:

 function __construct($par = null)
 {
     global $wgRequest;
     $this->like = $wgRequest->getText('like');
     $this->showbots = $wgRequest->getBool('showbots', 0);
     $this->skin = $this->getSkin();
     parent::__construct();
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:8,代码来源:SpecialNewimages.php

示例8: __construct

 public function __construct()
 {
     global $wgExternalSharedDB, $wgRequest;
     parent::__construct();
     $this->mDb = wfGetDB(DB_SLAVE, array(), $wgExternalSharedDB);
     $this->mSearchText = $wgRequest->getText('wpPhalanxCheckBlocker', null);
     $this->mSearchFilter = $wgRequest->getArray('wpPhalanxTypeFilter');
     $this->mSearchId = $wgRequest->getInt('id');
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:9,代码来源:SpecialPhalanx.body.php

示例9: list

 function __construct($special)
 {
     $this->special = $special;
     parent::__construct();
     // Override paging defaults
     list($this->mLimit, ) = $this->mRequest->getLimitOffset(20, '');
     $this->mLimitsShown = array(20, 50, 100);
     $this->viewPage = SpecialPage::getTitleFor('CentralNotice');
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:9,代码来源:CentralNoticeCampaignLogPager.php

示例10:

 function __construct(IContextSource $context, $par = null)
 {
     $this->like = $context->getRequest()->getText('like');
     $this->showbots = $context->getRequest()->getBool('showbots', 0);
     if (is_numeric($par)) {
         $this->setLimit($par);
     }
     parent::__construct($context);
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:9,代码来源:SpecialNewimages.php

示例11: wfGetDB

 function __construct(SpecialMergeHistory $form, $conds, Title $source, Title $dest)
 {
     $this->mForm = $form;
     $this->mConds = $conds;
     $this->title = $source;
     $this->articleID = $source->getArticleID();
     $dbr = wfGetDB(DB_REPLICA);
     $maxtimestamp = $dbr->selectField('revision', 'MIN(rev_timestamp)', ['rev_page' => $dest->getArticleID()], __METHOD__);
     $this->maxTimestamp = $maxtimestamp;
     parent::__construct($form->getContext());
 }
开发者ID:paladox,项目名称:mediawiki,代码行数:11,代码来源:MergeHistoryPager.php

示例12: array

 function __construct($specialPage, $searchConds, $y, $m)
 {
     parent::__construct();
     /*
     		$this->messages = array_map( 'wfMsg',
     			array( 'comma-separator', 'checkuser-log-userips', 'checkuser-log-ipedits', 'checkuser-log-ipusers',
     			'checkuser-log-ipedits-xff', 'checkuser-log-ipusers-xff' ) );*/
     $this->getDateCond($y, $m);
     $this->searchConds = $searchConds ? $searchConds : array();
     $this->specialPage = $specialPage;
 }
开发者ID:yusufchang,项目名称:app,代码行数:11,代码来源:CheckUserLogPager.php

示例13: array

 /**
  * @param ImagePage $imagePage
  */
 function __construct($imagePage)
 {
     parent::__construct($imagePage->getContext());
     $this->mImagePage = $imagePage;
     $this->mTitle = clone $imagePage->getTitle();
     $this->mTitle->setFragment('#filehistory');
     $this->mImg = null;
     $this->mHist = array();
     $this->mRange = array(0, 0);
     // display range
 }
开发者ID:OrBin,项目名称:mediawiki,代码行数:14,代码来源:ImageHistoryPseudoPager.php

示例14: list

 function __construct($special)
 {
     $this->special = $special;
     $this->editable = $special->editable;
     parent::__construct();
     // Override paging defaults
     list($this->mLimit, ) = $this->mRequest->getLimitOffset(20, '');
     $this->mLimitsShown = array(20, 50, 100);
     $msg = Xml::encodeJsVar(wfMsg('centralnotice-confirm-delete'));
     $this->onRemoveChange = "if( this.checked ) { this.checked = confirm( {$msg} ) }";
     $this->viewPage = SpecialPage::getTitleFor('NoticeTemplate', 'view');
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:12,代码来源:TemplatePager.php

示例15: list

 function __construct($special, $filter = '')
 {
     $this->special = $special;
     $this->editable = $special->editable;
     $this->filter = $filter;
     parent::__construct();
     // Override paging defaults
     list($this->mLimit, ) = $this->mRequest->getLimitOffset(20, '');
     $this->mLimitsShown = array(20, 50, 100);
     $msg = Xml::encodeJsVar($this->msg('promoter-confirm-delete')->text());
     $this->onRemoveChange = "if( this.checked ) { this.checked = confirm( {$msg} ) }";
     $this->viewPage = SpecialPage::getTitleFor('CampaignAd', 'view');
 }
开发者ID:kolzchut,项目名称:mediawiki-extensions-Promoter,代码行数:13,代码来源:AdPager.php


注:本文中的ReverseChronologicalPager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。