Subversion Repositories Applications.projet

Rev

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

Rev 116 Rev 136
Line 31... Line 31...
31
 
31
 
32
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
32
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
33
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
33
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
34
// termes.
34
// termes.
35
// ----
35
// ----
Line 36... Line 36...
36
// CVS : $Id: ezmlmAccessObject.class.php,v 1.2 2006-07-04 08:46:07 alexandre_tb Exp $
36
// CVS : $Id: ezmlmAccessObject.class.php,v 1.3 2006-09-18 09:55:21 alexandre_tb Exp $
37
 
37
 
38
/**
38
/**
39
* Application projet
39
* Application projet
Line 44... Line 44...
44
//Auteur original :
44
//Auteur original :
45
*@author        Alexandre Granier <alexandre@tela-botanica.org>
45
*@author        Alexandre Granier <alexandre@tela-botanica.org>
46
//Autres auteurs :
46
//Autres auteurs :
47
*@author        Aucun
47
*@author        Aucun
48
*@copyright     Tela-Botanica 2000-2006
48
*@copyright     Tela-Botanica 2000-2006
49
*@version       $Revision: 1.2 $
49
*@version       $Revision: 1.3 $
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
*/
51
*/
Line 52... Line 52...
52
 
52
 
53
/** Etend XML_Parser_Simple */
53
/** Etend XML_Parser_Simple */
Line 142... Line 142...
142
	
142
	
Line 143... Line 143...
143
	var $_numeroFichierSuivant;
143
	var $_numeroFichierSuivant;
Line -... Line 144...
-
 
144
	
-
 
145
	var $_numeroFichierPrecedent;
144
	
146
	
145
	var $_numeroFichierPrecedent;
147
	var $chemin_fichier_xml;
146
	
148
	
147
	/**
149
	/**
148
	 * Creation de l'objet d'accès
150
	 * Creation de l'objet d'accès
Line 225... Line 227...
225
	 * cad affecte un fichier xml au parser
227
	 * cad affecte un fichier xml au parser
226
	 * 
228
	 * 
227
	 * @access public
229
	 * @access public
228
	 */
230
	 */
229
	function load() {
231
	function load() {
230
		$chemin_fichier_xml = PROJET_SERVEUR_VPOPMAIL.'/'.$this->action.'.php?domaine='.
232
		$this->chemin_fichier_xml = PROJET_SERVEUR_VPOPMAIL.'/'.$this->action.'.php?domaine='.
231
                         $this->domaine.'&liste='.$this->liste.'&langue='.
233
                         $this->domaine.'&liste='.$this->liste.'&langue='.
232
                         $this->langue ;
234
                         $this->langue ;
233
		if ($this->url != '') $chemin_fichier_xml.= '&url='.urlencode($this->url) ; 
235
		if ($this->url != '') $this->chemin_fichier_xml.= '&url='.urlencode($this->url) ; 
234
		if (isset ($this->identifiant_repertoire)) 
236
		if (isset ($this->identifiant_repertoire)) 
235
			$chemin_fichier_xml .= '&actionargs[]='.$this->identifiant_repertoire ;
237
			$this->chemin_fichier_xml .= '&actionargs[]='.$this->identifiant_repertoire ;
236
		if (isset ($this->identifiant_message)) 
238
		if (isset ($this->identifiant_message)) 
237
			$chemin_fichier_xml .= '&actionargs[]='.$this->identifiant_message ;
239
			$this->chemin_fichier_xml .= '&actionargs[]='.$this->identifiant_message ;
238
		if (isset ($this->hash_auteur)) 
240
		if (isset ($this->hash_auteur)) 
239
			$chemin_fichier_xml .= '&actionargs[]='.$this->hash_auteur ;
241
			$this->chemin_fichier_xml .= '&actionargs[]='.$this->hash_auteur ;
240
		if (isset ($this->mois)) 
242
		if (isset ($this->mois)) 
241
			$chemin_fichier_xml .= '&actionargs[]='.$this->mois ;
243
			$this->chemin_fichier_xml .= '&actionargs[]='.$this->mois ;
Line 242... Line 244...
242
		
244
		
243
		$this->setInputFile($chemin_fichier_xml) ;
245
		$this->setInputFile($this->chemin_fichier_xml) ;
Line 244... Line 246...
244
	}
246
	}
245
	
247
	
246
	/**
248
	/**
Line 290... Line 292...
290
	 function getNumeroFichierSuivant () { return $this->_numeroFichierSuivant ; }
292
	 function getNumeroFichierSuivant () { return $this->_numeroFichierSuivant ; }
Line 291... Line 293...
291
	 
293
	 
Line 292... Line 294...
292
	 function getNumeroRepertoirePrecedent() { return $this->_numeroRepertoirePrecedent; }
294
	 function getNumeroRepertoirePrecedent() { return $this->_numeroRepertoirePrecedent; }
-
 
295
	 
-
 
296
	 function getNumeroFichierPrecedent () { return $this->_numeroFichierPrecedent ; }
-
 
297
	 
-
 
298
	 function parse()
-
 
299
    {
-
 
300
  		if (substr(phpversion(), 0, 1) == '5') {
-
 
301
  			$xml = new SimpleXMLElement(file_get_contents($this->chemin_fichier_xml));
-
 
302
  			echo utf8_decode ($xml);
-
 
303
  			switch ($this->action) {
-
 
304
  				case 'calendrier_messages' : echo utf8_decode($xml->ezmlm_calendrier_messages);
-
 
305
  			}
-
 
306
  		} else {
-
 
307
  			return parent::parse();
293
	 
308
  		}
Line 294... Line 309...
294
	 function getNumeroFichierPrecedent () { return $this->_numeroFichierPrecedent ; }
309
    }
295
}
310
}