/** * @return void */ public function delete() { TexteBusiness::delete($this); }
public function regles() { $this->getMenu()->setAccueil('regles'); $this->data['regles'] = TexteBusiness::getByCode('REGLES')->getTexte(); $html = $this->fetch('pages/Accueil/Regles.php'); $this->data['qgsNiveaux'] = QGs::getArrayRulesNiveaux(); $html = str_replace('||tabQgsNiveaux||', $this->fetch('elements/regles/nivQG.php'), $html); $this->data['unites'] = Unites::getArrayRules(); $html = str_replace('||tabUnites||', $this->fetch('elements/regles/tabUnites.php'), $html); $this->data['tabValsUnites'] = Unites::getArrayValsRules(); $html = str_replace('||tabValsUnites||', $this->fetch('elements/regles/tabValsUnites.php'), $html); $html = str_replace('||tabModifTerrain||', $this->fetch('elements/regles/tabModifTerrain.php'), $html); $this->data['tabBatimentsDefensifs'] = Infrastructures::$types; $html = str_replace('||tabBatimentsDefensifs||', $this->fetch('elements/regles/tabBatimentsDefensifs.php'), $html); $html = str_replace('||donneesNiveauxPourRegles||', $this->fetch('elements/regles/donneesNiveauxPourRegles.php'), $html); $html = str_replace('||descriptionMissions||', $this->fetch('elements/regles/missions.php'), $html); $html = str_replace('||tableCombats||', $this->fetch('elements/regles/tableCombats.php'), $html); $html = str_replace('||ordreResolutionMissions||', $this->fetch('elements/regles/ordreResolutionMissions.php'), $html); $this->data['tabTraversees'] = Terrains::$traversees; $html = str_replace('||tabTraversees||', $this->fetch('elements/regles/tabTraversees.php'), $html); echo $html; }