tussenopslag

This commit is contained in:
Monique
2021-11-16 13:46:11 +01:00
parent a9a63c2476
commit 2db90688a6
4 changed files with 16 additions and 8 deletions
@@ -54,8 +54,7 @@ class Schoolscores
}
private function setScores(){
$orglist [] = $this->orgid;
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $orglist);
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgid);
}
@@ -24,7 +24,7 @@ class Individuelescores
private function handle(){
$this->setUserid();
$this->setScores();
$this->telScores();
// $this->telScores();
}
private function setUserid(){
@@ -34,11 +34,6 @@ class Individuelescores
private function setScores(){
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
}
private function telScores(){
foreach($this->scores as $index => $this->score){
}
}
}
@@ -325,6 +325,7 @@ class Lijsten
}
}
private function setSchoolMetingen(){
if($this->lijst->vorm != 1) return;
@@ -516,6 +516,19 @@ class Scores_model extends MY_Model{
return $this->get_query_row();
}
function fCountGevuldeVersiesNieuw($orgversieid, $orgids){
$this->sql =" SELECT COUNT(DISTINCT filledversion_id) as aantal, COUNT(DISTINCT(O.id)) AS aantalorgs
FROM tb_scores S
JOIN tb_filledversions FV ON FV.id = S.filledversion_id
JOIN tb_organisaties O ON FV.organisatie_id = O.id
WHERE FV.orgversie_id = {$orgversieid}
AND FV.organisatie_id IN ({$orgids})
AND FV.meetellen = 1
AND S.score > 0
HAVING COUNT(S.id) >= 5";
return $this->get_query_row();
}
function fGetGevuldeBestuurVersie($orgversieid, $bgid){