Subversion Repositories eFlore/Applications.cel

Rev

Rev 1703 | Rev 1711 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1703 Rev 1709
Line 69... Line 69...
69
		
69
		
70
	/**
70
	/**
71
	 * Méthode appelée avec une requête de type GET.
71
	 * Méthode appelée avec une requête de type GET.
72
	 */
72
	 */
73
	public function getElement($params = array()) {		
73
	public function getElement($params = array()) {
74
		if(count($params) > 0) {
74
		if(!$params) exit; // ne pas faire de super-requête en cas d'absence de paramètres
75
			switch(strtolower($params[0])) {
75
		switch(strtolower($params[0])) {
76
				case 'calcul':
76
		case 'calcul':
77
					$this->getCalcul();
77
			$this->getCalcul();
Line 82... Line 82...
82
				break;
82
			break;
Line 83... Line 83...
83
				
83
				
84
				default:
84
		default:
85
					$this->getExport();
85
			$this->getExport();
86
			}
-
 
87
		} else {
-
 
88
			$this->getExport();
-
 
89
		}
86
		}
Line 90... Line 87...
90
	}
87
	}
91
	
88