Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 80 | Rev 107 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 103
Line 58... Line 58...
58
		}
58
		}
59
	}
59
	}
Line 60... Line 60...
60
 
60
 
61
	protected function chargerStructureSql() {
61
	protected function chargerStructureSql() {
-
 
62
		$contenuSql = $this->recupererContenu(Config::get('chemins.structureSql'));
-
 
63
		$this->executerScripSql($contenuSql);
-
 
64
	}
-
 
65
 
62
		$contenuSql = $this->recupererContenu(Config::get('chemins.structureSql'));
66
	protected function executerScripSql($sql) {
63
		$requetes = Outils::extraireRequetes($contenuSql);
67
		$requetes = Outils::extraireRequetes($sql);
64
		foreach ($requetes as $requete) {
68
		foreach ($requetes as $requete) {
65
			$this->getBdd()->requeter($requete);
69
			$this->getBdd()->requeter($requete);
66
		}
70
		}