/** * Generate the module */ protected function compile() { switch ($this->cal_format) { case 'cal_year': $this->compileYearlyMenu(); break; default: case 'cal_month': $this->compileMonthlyMenu(); break; case 'cal_day': parent::compile(); break; } }