Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1034 | Rev 1499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1034 Rev 1195
Line 124... Line 124...
124
 
124
 
125
	public function executerPdfExport(){
125
	public function executerPdfExport(){
126
		$this->capturerParametresFormulaire();
126
		$this->capturerParametresFormulaire();
127
		$hash = crc32($this->parametres['referentiel'].'-'.implode('-', $this->blocs));
127
		$hash = crc32($this->parametres['referentiel'].'-'.implode('-', $this->blocs));
-
 
128
		$nom_fichier = $this->getNomFichierValide().'-'.$hash;
-
 
129
		
-
 
130
		// le dossier cache existe normalement, mais le sous dossier pdf
-
 
131
		// est parfois effacé par erreur lors des suppressions de cache
-
 
132
		// il vaut mieux donc le recréer s'il n'existe pas
-
 
133
		if(!file_exists($this->chemin_pdf)) {
-
 
134
			mkdir($this->chemin_pdf, 0755, true);
Line 128... Line 135...
128
		$nom_fichier = $this->getNomFichierValide().'-'.$hash;
135
		}
129
 
136
 
Line 130... Line 137...
130
		$this->fichier_html = $this->chemin_pdf.''.$nom_fichier.'.html';
137
		$this->fichier_html = $this->chemin_pdf.''.$nom_fichier.'.html';