Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 768 Rev 985
Line 11... Line 11...
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Statut extends aControleur {
15
class Statut extends aControleur {
-
 
16
	private $conteneur = null;
-
 
17
	private $nomCourant = null;
-
 
18
	private $wikini = null;
-
 
19
	private $statuts = null;
-
 
20
	private $referentiel = null;
-
 
21
	
-
 
22
	
16
	public function __construct(Conteneur $conteneur) {
23
	public function __construct(Conteneur $conteneur) {
17
		$this->conteneur = $conteneur;
24
		$this->conteneur = $conteneur;
18
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->nomCourant = $this->conteneur->getNomCourant();
19
		$this->wikini = $this->conteneur->getApiWikini();
26
		$this->wikini = $this->conteneur->getApiWikini();
20
		$this->statuts = $this->conteneur->getApiStatuts();
27
		$this->statuts = $this->conteneur->getApiStatuts();
-
 
28
		$this->referentiel = $this->conteneur->getParametre('referentiel');
21
	}
29
	}
Line 22... Line 30...
22
	
30
	
23
	public function getBloc() {
31
	public function getBloc() {
24
		$donnees = array();
32
		$donnees = array();
Line 35... Line 43...
35
		$donnees['statuts'] = $this->getStatuts();
43
		$donnees['statuts'] = $this->getStatuts();
36
		return $donnees;
44
		return $donnees;
37
	}
45
	}
Line 38... Line 46...
38
	
46
	
-
 
47
	private function getStatuts() {
-
 
48
		$statuts = "";
-
 
49
		$projet = Config::get($this->referentiel.'.baseStatuts');
39
	private function getStatuts() {
50
		if ($projet != "") {
40
		$nnr = $this->nomCourant->getNnr();
51
			$nnr = $this->nomCourant->getNnr();
-
 
52
			$statuts = $this->statuts->getStatuts($projet, $nnr);
41
		$statuts = $this->statuts->getStatuts($nnr);
53
		}
42
		return $statuts;
54
		return $statuts;
Line 43... Line 55...
43
	}
55
	}
-
 
56
	
-
 
57
	private function getStatutsZoneGeo() {
-
 
58
		$statuts = "";
44
	
59
		$projet = Config::get($this->referentiel.'.baseStatuts');
45
	private function getStatutsZoneGeo() {
60
		if ($projet != "") {
-
 
61
			$nnr = $this->nomCourant->getNnr();
46
		$nnr = $this->nomCourant->getNnr();
62
			$statuts = $this->statuts->getStatutsZoneGeo($projet, $nnr);
47
		$statuts = $this->statuts->getStatutsZoneGeo($nnr);
63
		}
Line 48... Line 64...
48
		return $statuts;
64
		return $statuts;
49
	}
65
	}