Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1612 Rev 1793
Line 1... Line 1...
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
	* Le web service image récupère toutes les données de la table del_obs_images
-
 
5
 * pour retourner une liste d'images associée à une observation
4
 * Permet d'ajouter un commentaire.
6
 *
5
 *
7
 * @category	php 5.2
6
 * @category DEL
8
 * @package	del
7
 * @package Services
9
 * @subpackage images
8
 * @subpackage Commentaires
-
 
9
 * @version 0.1
10
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
 * @author Mathias CHOUET <mathias@tela-botanica.org>
11
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
11
 * @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
12
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
 * @author Aurelien PERONNET <aurelien@tela-botanica.org>
13
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
14
 * @version	$Id: Bdd.php 403 2012-02-22 14:35:20Z gduche $
14
 * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
15
 * @see http://www.tela-botanica.org/wikini/eflore/wakka.php?wiki=ApiIdentiplante01Images
15
 * @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>
16
 */
16
 */
Line 17... Line 17...
17
 
17
 
Line 18... Line 18...
18
class AjouterCommentaire {
18
class AjouterCommentaire {
19
 
19
 
20
	private $conteneur;
20
	private $conteneur;
21
	private $navigation;
-
 
22
	private $masque;
21
	private $navigation;
23
	private $gestionBdd;
22
	private $masque;
24
	private $bdd;
23
	private $bdd;
Line 25... Line 24...
25
	private $parametres = array();
24
	private $parametres = array();
Line 26... Line 25...
26
	private $ressources = array();
25
	private $ressources = array();
27
 
26
 
28
	private $commentaire;
27
	private $commentaire;
29
 
28
 
30
	public function __construct(Conteneur $conteneur = null) {
29
	public function __construct(Conteneur $conteneur) {
31
		$this->conteneur = $conteneur == null ? new Conteneur() : $conteneur;
30
		$this->conteneur = $conteneur;
32
		$this->conteneur->chargerConfiguration('config_commentaires.ini');
-
 
33
		$this->conteneur->chargerConfiguration('config_mapping_commentaires.ini');
31
		$this->conteneur->chargerConfiguration('config_commentaires.ini');
34
		$this->navigation = $conteneur->getNavigation();
32
		$this->conteneur->chargerConfiguration('config_mapping_commentaires.ini');
Line 35... Line 33...
35
		$this->masque = $conteneur->getMasque();
33
		$this->navigation = $conteneur->getNavigation();
36
		$this->gestionBdd = $conteneur->getGestionBdd();
34
		$this->masque = $conteneur->getMasque();
37
		$this->bdd = $this->gestionBdd->getBdd();
35
		$this->bdd = $this->conteneur->getBdd();
Line 255... Line 253...
255
			}
253
			}
256
		}
254
		}
Line 257... Line 255...
257
 
255
 
258
		return implode(', ', $valeurs);
256
		return implode(', ', $valeurs);
259
	}
-
 
260
}
-
 
261
?>
257
	}
-
 
258
}
262
259