Subversion Repositories Applications.framework

Rev

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

Rev 360 Rev 361
Line 12... Line 12...
12
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
12
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
13
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
13
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
14
 * @license	GPL v3 <http://www.gnu.org/licenses/gpl.txt>
14
 * @license	GPL v3 <http://www.gnu.org/licenses/gpl.txt>
15
 * @license	CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
15
 * @license	CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
16
 * @since 		0.3
16
 * @since 		0.3
17
 * @version	$Id: RestService.php 360 2011-09-01 13:30:16Z jpm $
17
 * @version	$Id: RestService.php 361 2011-09-01 13:37:00Z jpm $
18
 * @link		http://www.tela-botanica.org/wikini/DevInformatiques/wakka.php?wiki=AppliBaseDocV3RestServeur
18
 * @link		http://www.tela-botanica.org/wikini/DevInformatiques/wakka.php?wiki=AppliBaseDocV3RestServeur
19
 */
19
 */
20
abstract class RestService {
20
abstract class RestService {
Line 21... Line 21...
21
	
21
	
Line 36... Line 36...
36
	 * Méthode de connection à la base de données sur demande.
36
	 * Méthode de connection à la base de données sur demande.
37
	 * Tous les services web n'ont pas besoin de s'y connecter.
37
	 * Tous les services web n'ont pas besoin de s'y connecter.
38
	 */
38
	 */
39
	protected function getBdd() {
39
	protected function getBdd() {
40
		if (! isset($this->bdd)) {
40
		if (! isset($this->bdd)) {
41
			$this->bdd = new bdd();
41
			$this->bdd = new Bdd();
42
		}
42
		}
43
		return $this->bdd;
43
		return $this->bdd;
44
	}
44
	}
Line 45... Line 45...
45
	
45