public function get_slots_in_section($sectionid) {
        $slots = array();
        foreach ($this->slotsinorder as $slot) {
            if ($slot->section->id == $sectionid) {
                $slots[] = $slot->slot;
            }
        }
        return $slots;
    }
public function get_slots_in_section($sectionid) {
        $slots = array();
        foreach ($this->slotsinorder as $slot) {
            if ($slot->section->id == $sectionid) {
                $slots[] = $slot->slot;
            }
        }
        return $slots;
    }
public function get_slots_in_section ( $ sectionid ) { $ slots = array ( ) ; foreach ( $ this -> slotsinorder as $ slot ) { if ( $ slot -> section -> id == $ sectionid ) { $ slots [ ] = $ slot -> slot ; } } return $ slots ; }
Get all the slots in a section of the quiz.
@param int $sectionid the section id.
@return int[] slot numbers.
Get all the slots in a section of the quiz .