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.
$modelPiirkondKoond =
new Model_Piirkondkoond();
$modelValikKoond =
new Model_Valikkoond();
$modelLoppKoond =
new Model_Loppkoond();
$modelLahtineKoond =
new Model_Lahtinekoond();
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 ' .
$class .
'.klass';
$this->view->competitionName =
$competitionName;
$this->view->stats =
$stats;
Documentation generated on Wed, 15 Jun 2011 15:50:40 +0300 by phpDocumentor 1.4.1