74 lines
1.7 KiB
PHP
74 lines
1.7 KiB
PHP
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class Schoolscores
|
|
{
|
|
private $CI;
|
|
private $ijkpunten;
|
|
private $scores;
|
|
private $ambities;
|
|
private $wensen;
|
|
private $schoolScores;
|
|
|
|
|
|
public function __construct( $orgversieid, $orgid)
|
|
{
|
|
$this->CI =& get_instance();
|
|
$this->orgversieid = $orgversieid;
|
|
$this->orgid = $orgid;
|
|
$this->handle();
|
|
}
|
|
|
|
public function getScores(){
|
|
return $this->scores;
|
|
}
|
|
|
|
public function getAmbities(){
|
|
return $this->ambities;
|
|
}
|
|
|
|
public function getWensen(){
|
|
return $this->wensen;
|
|
}
|
|
|
|
public function getSchoolScores()
|
|
{
|
|
return $this->schoolScores;
|
|
}
|
|
|
|
public function getIJkpunten(){
|
|
return $this->ijkpunten;
|
|
}
|
|
|
|
private function handle()
|
|
{
|
|
$this->setIJkpunten();
|
|
$this->setScores();
|
|
$this->setAmbities();
|
|
$this->setWensen();
|
|
$this->setSchoolScores();
|
|
}
|
|
|
|
|
|
private function setIJkpunten(){
|
|
$this->ijkpunten = $this->CI->Ijkpunten_model->getijkpuntenMetIndicatoren($this->orgversieid);
|
|
}
|
|
|
|
private function setScores(){
|
|
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgid);
|
|
}
|
|
|
|
|
|
private function setAmbities(){
|
|
$this->ambities = $this->CI->Ambities_model->getOrgAmbities($this->orgversieid, $this->orgid);
|
|
}
|
|
|
|
private function setWensen(){
|
|
$this->wensen = $this->CI->Wenssituaties_model->getgewenst( $this->orgversieid, $this->orgid);
|
|
}
|
|
|
|
private function setSchoolScores(){
|
|
$this->schoolScores = [
|
|
$this->ijkpunten, $this->scores, $this->ambities, $this->wensen];
|
|
}
|
|
|
|
} |