Subversion Repositories Applications.projet

Rev

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

Rev 11 Rev 15
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.3 2005-09-27 16:38:35 alexandre_tb Exp $
22
// CVS : $Id: fichier.class.php,v 1.4 2005-09-28 16:29:39 ddelon 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.3 $
34
*@version       $Revision: 1.4 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 95... Line 95...
95
     * 
95
     * 
96
     *
96
     *
97
     * @return void
97
     * @return void
98
     * @access public
98
     * @access public
99
     */
99
     */
100
    function fichier( $chemin, $objetDB = "")
100
    function fichier( $chemin, &$objetDB = "")
101
    {
101
    {
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 115... Line 115...
115
     *
115
     *
116
     * @param string chemin Le chemin du fichier sur le serveur.
116
     * @param string chemin Le chemin du fichier sur le serveur.
117
     * @return fichier
117
     * @return fichier
118
     * @access public
118
     * @access public
119
     */
119
     */
120
    function __construct( $chemin )
120
    function __construct( $chemin, &$objetDB = "" )
121
    {
121
    {
-
 
122
        $this->fichier($chemin, $objetDB);
Line 122... Line 123...
122
        
123
        
Line 123... Line 124...
123
    } // end of member function __construct
124
    } // end of member function __construct
124
 
125