Subversion Repositories eFlore/Applications.cel

Rev

Rev 2419 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2419 jpm 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Contient des méthodes utiles pour manipuler les fichiers.
5
 *
6
 * @category   CEL
7
 * @package    Scripts
8
 * @subpackage Bibliotheque
9
 * @author     Mathias CHOUET <mathias@tela-botanica.org>
10
 * @author     Jean-Pascal MILCENT <jpm@tela-botanica.org>
11
 * @author     Aurelien PERONNET <aurelien@tela-botanica.org>
12
 * @license    GPL v3 <http://www.gnu.org/licenses/gpl.txt>
13
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
14
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
15
 */
16
class FichierUtil {
17
	public static function recupererContenu($chemin) {
18
		$contenu = file_get_contents($chemin);
19
		if ($contenu === false){
20
			throw new Exception("Impossible d'ouvrir le fichier SQL : $chemin");
21
		}
22
		return $contenu;
23
	}
24
}