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


PHP Match::count方法代码示例

本文整理汇总了PHP中Match::count方法的典型用法代码示例。如果您正苦于以下问题:PHP Match::count方法的具体用法?PHP Match::count怎么用?PHP Match::count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Match的用法示例。


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

示例1: actionIndex

 /**
  * 首页
  *
  */
 public function actionIndex()
 {
     parent::_acl('match_index');
     $model = new Match();
     $criteria = new CDbCriteria();
     $count = $model->count($criteria);
     $pages = new CPagination($count);
     $pages->pageSize = 10;
     $criteria->limit = $pages->pageSize;
     $criteria->offset = $pages->currentPage * $pages->pageSize;
     $result = $model->findAll($criteria);
     $this->render('index', array('datalist' => $result, 'pagebar' => $pages));
 }
开发者ID:zywh,项目名称:maplecity,代码行数:17,代码来源:MatchController.php

示例2:

 tournaments here, and your ratings for Pauper Magic will also be calculated.</p>
<p>
<div class="alpha grid_5">
<b>Some good starting points:</b>
<ul>
<li> <a href="eventreport.php"> See a list of recent events </a> </li>
<li> <a href="decksearch.php"> Search for decks with a certain card </a> </li>
<ul>
<b>Random statistics about Gatherling:</b>
<ul>
<li> There are <?php 
echo Deck::uniqueCount();
?>
 unique decks. </li>
<li> We have recorded <?php 
echo Match::count();
?>
 matches from <?php 
echo Event::count();
?>
 events.</li>
<li> There are <?php 
echo Player::activeCount();
?>
 active players in gatherling. (<?php 
echo Player::verifiedCount();
?>
 verified) </li>
</ul>
</div>
<div class="grid_5 omega">
开发者ID:jamuraa,项目名称:gatherling,代码行数:31,代码来源:index.php


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