本文整理汇总了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));
}
示例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">