tussenopslag
This commit is contained in:
@@ -54,8 +54,7 @@ class Schoolscores
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setScores(){
|
private function setScores(){
|
||||||
$orglist [] = $this->orgid;
|
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgid);
|
||||||
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $orglist);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Individuelescores
|
|||||||
private function handle(){
|
private function handle(){
|
||||||
$this->setUserid();
|
$this->setUserid();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
$this->telScores();
|
// $this->telScores();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setUserid(){
|
private function setUserid(){
|
||||||
@@ -34,11 +34,6 @@ class Individuelescores
|
|||||||
private function setScores(){
|
private function setScores(){
|
||||||
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
|
$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(){
|
private function setSchoolMetingen(){
|
||||||
|
|
||||||
if($this->lijst->vorm != 1) return;
|
if($this->lijst->vorm != 1) return;
|
||||||
|
|||||||
@@ -516,6 +516,19 @@ class Scores_model extends MY_Model{
|
|||||||
return $this->get_query_row();
|
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){
|
function fGetGevuldeBestuurVersie($orgversieid, $bgid){
|
||||||
|
|||||||
Reference in New Issue
Block a user