• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ReverseChronologicalPager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: wfGetDB

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


示例17: getNavigationBar

 function getNavigationBar()
 {
     if (isset($this->mNavigationBar)) {
         return $this->mNavigationBar;
     }
     // Sets mNavigation bar with the default text which we will then wrap
     parent::getNavigationBar();
     $this->mNavigationBar = array('class' => 'HTMLAdPagerNavigation', 'value' => $this->mNavigationBar);
     if ($this->formSection) {
         $this->mNavigationBar['section'] = $this->formSection;
     }
     return $this->mNavigationBar;
 }
开发者ID:kolzchut,项目名称:mediawiki-extensions-Promoter,代码行数:13,代码来源:PRAdPager.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     $this->app = F::app();
     $this->mDb = wfGetDB(DB_SLAVE, array(), $this->app->wg->ExternalSharedDB);
     $this->mSearchText = $this->app->wg->Request->getText('wpPhalanxCheckBlocker', null);
     $this->mSearchFilter = $this->app->wg->Request->getArray('wpPhalanxTypeFilter');
     $this->mSearchId = $this->app->wg->Request->getInt('id');
     // handle "type" parameter from URLs comming from hook messages
     $type = $this->app->wg->Request->getInt('type');
     if ($type > 0) {
         $this->mSearchFilter = array($type);
     }
     $this->mTitle = Title::newFromText('Phalanx/stats', NS_SPECIAL);
     $this->mSkin = RequestContext::getMain()->getSkin();
     $this->phalanxPage = SpecialPage::getTitleFor('Phalanx');
     $this->phalanxStatsPage = SpecialPage::getTitleFor('PhalanxStats');
 }
开发者ID:yusufchang,项目名称:app,代码行数:18,代码来源:PhalanxPager.class.php


示例19: array

 /**
  * @param HistoryAction $historyPage
  * @param string $year
  * @param string $month
  * @param string $tagFilter
  * @param array $conds
  */
 function __construct($historyPage, $year = '', $month = '', $tagFilter = '', $conds = array())
 {
     parent::__construct($historyPage->getContext());
     $this->historyPage = $historyPage;
     $this->tagFilter = $tagFilter;
     $this->getDateCond($year, $month);
     $this->conds = $conds;
 }
开发者ID:Habatchii,项目名称:wikibase-for-mediawiki,代码行数:15,代码来源:HistoryAction.php


示例20: array

 function __construct($form, $conds = array())
 {
     $this->mForm = $form;
     $this->mConds = $conds;
     parent::__construct();
 }
开发者ID:puring0815,项目名称:OpenKore,代码行数:6,代码来源:SpecialIpblocklist.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Review类代码示例发布时间:2022-05-23
下一篇:
PHP RevSliderWpml类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap