Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 683 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 683 Rev 920
Line 10... Line 10...
10
		$this->eflore = $conteneur->getEfloreCommun();
10
		$this->eflore = $conteneur->getEfloreCommun();
11
		$this->bdd = $conteneur->getBdd();
11
		$this->bdd = $conteneur->getBdd();
12
	}
12
	}
Line 13... Line 13...
13
 
13
 
14
	public function chargerTous() {
-
 
15
		$this->chargerStructureSql();
14
	public function chargerTous() {
16
		$this->chargerVersions();
15
		$this->chargerVersions();
Line 17... Line -...
17
	}
-
 
18
 
-
 
19
	public function chargerStructureSql() {
-
 
20
		$this->eflore->chargerStructureSql();
-
 
21
	}
16
	}
22
 
17
 
23
	public function chargerVersions() {
18
	public function chargerVersions() {
24
		$versions = explode(',', Config::get('versions'));
19
		$versions = explode(',', Config::get('versions'));
25
		$versionsDonnees = explode(',', Config::get('versionsDonnees'));
20
		$versionsDonnees = explode(',', Config::get('versionsDonnees'));
Line 53... Line 48...
53
				'IGNORE 1 LINES ';
48
				'IGNORE 1 LINES ';
54
		$this->bdd->requeter($requete);
49
		$this->bdd->requeter($requete);
55
	}
50
	}
Line 56... Line 51...
56
 
51
 
-
 
52
	private function chargerDumpWikiniVersion($versionDonnees, $version) {
-
 
53
		$versionMajeure = (int) substr($version, 0, 1);
57
	private function chargerDumpWikiniVersion($versionDonnees, $version) {
54
		if ($versionMajeure < 2) {
58
		$fichierWikiTpl = Config::get('chemins.costeWikiniTpl');
55
			$fichierWikiTpl = Config::get('chemins.costeWikiniTpl');
59
		$fichierDump = sprintf($fichierWikiTpl, $versionDonnees, $version);
56
			$fichierDump = sprintf($fichierWikiTpl, $versionDonnees, $version);
60
		$contenuSql = $this->eflore->recupererContenu($fichierDump);
57
			$contenuSql = $this->eflore->recupererContenu($fichierDump);
-
 
58
			$this->eflore->executerScriptSql($contenuSql);
61
		$this->eflore->executerScriptSql($contenuSql);
59
		}
Line 62... Line 60...
62
	}
60
	}
63
 
61
 
64
	public function supprimerTous() {
62
	public function supprimerTous() {