| Line 17... |
Line 17... |
| 17 |
// | |
|
17 |
// | |
|
| 18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
| 22 |
// CVS : $Id: fichier.class.php,v 1.7 2007-06-25 12:15:06 alexandre_tb Exp $
|
22 |
// CVS : $Id: fichier.class.php,v 1.8 2008-08-25 15:16:25 alexandre_tb Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Application projet
|
24 |
* Application projet
|
| 25 |
*
|
25 |
*
|
| 26 |
* La classe fichier
|
26 |
* La classe fichier
|
| 27 |
*
|
27 |
*
|
| Line 29... |
Line 29... |
| 29 |
//Auteur original :
|
29 |
//Auteur original :
|
| 30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
| 32 |
*@author Aucun
|
32 |
*@author Aucun
|
| 33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
| 34 |
*@version $Revision: 1.7 $
|
34 |
*@version $Revision: 1.8 $
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
*/
|
36 |
*/
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| Line 102... |
Line 102... |
| 102 |
$this->_chemin = $chemin ;
|
102 |
$this->_chemin = $chemin ;
|
| 103 |
// On analyse l'extension pour découvrir le type mime
|
103 |
// On analyse l'extension pour découvrir le type mime
|
| 104 |
$partie_chemin = pathinfo ($this->_chemin) ;
|
104 |
$partie_chemin = pathinfo ($this->_chemin) ;
|
| Line 105... |
Line 105... |
| 105 |
|
105 |
|
| 106 |
if (is_object($objetDB) && isset($partie_chemin['extension'])) {
|
106 |
if (is_object($objetDB) && isset($partie_chemin['extension'])) {
|
| 107 |
$this->_type_mime = type_fichier_mime::factory ($partie_chemin['extension'], $objetDB) ;
|
107 |
$this->_type_mime = type_fichier_mime::factory ($partie_chemin['extension']) ;
|
| 108 |
}
|
108 |
}
|
| 109 |
// calcul du type
|
109 |
// calcul du type
|
| 110 |
if (is_dir ($this->_chemin)) $this->_type = 'repertoire' ;
|
110 |
if (is_dir ($this->_chemin)) $this->_type = 'repertoire' ;
|