tussenopslag
This commit is contained in:
@@ -5,7 +5,6 @@ class Schoolscores
|
||||
private $CI;
|
||||
private $ijkpunten;
|
||||
private $scores;
|
||||
private $score;
|
||||
private $ambities;
|
||||
private $wensen;
|
||||
private $schoolScores;
|
||||
@@ -16,59 +15,86 @@ class Schoolscores
|
||||
$this->CI =& get_instance();
|
||||
$this->orgversieid = $orgversieid;
|
||||
$this->orgid = $orgid;
|
||||
$this->handle();
|
||||
// $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];
|
||||
}
|
||||
// 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(){
|
||||
// $ambitieorgs = '';
|
||||
// $ambitieorgs = $this->getAmbitieOrgs($this->orgid, $ambitieorgs);
|
||||
// $ambitieorgs = rtrim($ambitieorgs, ',');
|
||||
//
|
||||
// $toporgsarray = explode(',', $ambitieorgs);
|
||||
// $toporgs = '';
|
||||
// $index = 0;
|
||||
// for($i = count($toporgsarray)-1; $i >= 0 ; $i--) {
|
||||
// if($index < 2) {
|
||||
// $toporgs .= $toporgsarray[$i] . ',';
|
||||
// $index++;
|
||||
// }
|
||||
// }
|
||||
// $toporgs = rtrim($toporgs, ',' );
|
||||
//
|
||||
// $this->ambities = $this->CI->Ambities_model->mh_get_ambitie_orgversie($this->orgversieid, $ambitieorgs, $toporgs);
|
||||
// }
|
||||
//
|
||||
// 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];
|
||||
// }
|
||||
//
|
||||
//
|
||||
// private function getAmbitieOrgs($orgid, $ambitieorgs){
|
||||
// $ambitieorgs .= $orgid . ',';
|
||||
// $valtonder = $this->CI->Organisaties_model->get_fieldvalue(['id' => $orgid], 'valtonder_id');
|
||||
// if($valtonder != $orgid){
|
||||
// return $this->getAmbitieOrgs($valtonder, $ambitieorgs);
|
||||
// }
|
||||
//
|
||||
// return $ambitieorgs;
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user