コード例 #1
0
ファイル: index.php プロジェクト: jamuraa/gatherling
<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">
<?php 
$player = Player::getSessionPlayer();
if ($player != NULL) {
コード例 #2
0
 static function countEvents($type, $teamId, $stationId)
 {
     $o = new Event();
     return $o->count("type=? and stationId=? and teamId=?", array($type, $teamId, $stationId));
 }