blokje in goed formaat
This commit is contained in:
@@ -81,7 +81,7 @@ class Compactepaginas
|
||||
|
||||
private function setDivBreedte(){
|
||||
if (!$this->onderdeel['onderdeelnr']) return;
|
||||
if($this->onderdeel['onderdeelnr'] != 1 || $this->divBreed== 'T') return;
|
||||
if($this->onderdeel['onderdeelnr'] != 1 || $this->onderdeel['onderdeelnr'] != 10 || $this->divBreed== 'T') return;
|
||||
$aantalGroepen = count($this->onderdeel['data']['data']['groepen']);
|
||||
if($aantalGroepen > 8){
|
||||
$this->divBreed = 'T';
|
||||
|
||||
@@ -152,12 +152,11 @@ class Compacteversies
|
||||
|
||||
private function setDiversiteit(){
|
||||
if($this->onderdeel->nummer != 1 && $this->onderdeel->nummer != 10) return;
|
||||
$module = 2;
|
||||
if(isset($this->swvID) && $this->swvID == 150 && $this->schooljaar->schooljaarnr > 8) $module = 660;
|
||||
$this->aantallln = $this->CI->Groepen_model->getversiesmetleerlingen(
|
||||
$module = $this->onderdeel->modulenr;
|
||||
if(isset($this->swvID) && $this->swvID == 150 && $this->schooljaar->schooljaarnr > 8 && $this->onderdeel->modulenr != 270) $module = 660;
|
||||
$this->aantallln = $this->CI->Groepen_model->getversiesmetleerlingengoedeversie(
|
||||
$this->CI->globorgid, $this->schooljaarnr, $this->onderdeel->schooltype, $module);
|
||||
|
||||
|
||||
if(isset($this->aantallln)){
|
||||
if ($this->aantallln > 0) {
|
||||
$this->onderdeel->groepen = $this->CI->Groepen_model->get_AantalGroepen($this->schooljaarnr, $this->CI->globorgid, $module);
|
||||
|
||||
Reference in New Issue
Block a user