Source for file StatsController.php
Documentation is available at StatsController.php
* Controller class for managing competition statistics.
* @author Margus Sellin <margus@bitweb.ee>
* @copyright Copyright (C) 2011. All rights reserved. Margus Sellin
* User chooses a competition, a year and a class from dropdownlists.
* Based on parameters chosen by user, the statistics table is displayed.
* Not all the parameters are required.
if($this->_request->isPost()) {
$competition =
$this->_getParam('competition');
$year =
$this->_getParam('year');
$class =
$this->_getParam('class');
$stats =
$modelPiirkondKoond->fetchAreaStatistics($year, $class);
$competitionName .=
'Piirkonnavoor '; break;
$stats =
$modelValikKoond->fetchAreaStatistics($year, $class);
$competitionName .=
'Valivõistlus '; break;
$stats =
$modelLoppKoond->fetchAreaStatistics($year, $class);
$competitionName .=
'Lõppvoor '; break;
$stats =
$modelLahtineKoond->fetchAreaStatistics($year, $class);
$competitionName .=
'Lahtine võistlus '; break;
$competitionName .=
$year .
'.a ';
$competitionName .=
$class .
'.klass';
$this->view->competitionName =
$competitionName;
$this->view->stats =
$stats;
Documentation generated on Mon, 20 Jun 2011 05:43:10 +0300 by phpDocumentor 1.4.1