Subversion Repositories Applications.projet

Rev

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

Rev 160 Rev 204
Line 18... Line 18...
18
// | You should have received a copy of the GNU General Public                                            |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
Line 22... Line 22...
22
 
22
 
Line 23... Line 23...
23
// CVS : $Id: projetControleur.class.php,v 1.34 2007-01-04 18:06:12 alexandre_tb Exp $
23
// CVS : $Id: projetControleur.class.php,v 1.35 2007-04-19 09:31:35 alexandre_tb Exp $
24
 
24
 
25
/**
25
/**
26
* Application projet
26
* Application projet
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        Alexandre Granier <alexandre@tela-botanica.org>
32
*@author        Alexandre Granier <alexandre@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 2000-2004
35
*@copyright     Tela-Botanica 2000-2004
36
*@version       $Revision: 1.34 $
36
*@version       $Revision: 1.35 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 196... Line 196...
196
     * parametre indiquant le type d'inscription possible
196
     * parametre indiquant le type d'inscription possible
197
     * @access private
197
     * @access private
198
     */
198
     */
199
 	var $_prive = 0 ;
199
 	var $_prive = 0 ;
Line -... Line 200...
-
 
200
 
-
 
201
	/**
-
 
202
     * parametre pour gere l appel a un service en rapport avec ajax
-
 
203
     * @access private
-
 
204
     */
-
 
205
	var $_service ;
200
 
206
	
201
    /**
207
    /**
202
     * Méthode principale de la classe. Elle permet d'appeler les méthodes du modules
208
     * Méthode principale de la classe. Elle permet d'appeler les méthodes du modules
203
     * projet en fonction de l'action.
209
     * projet en fonction de l'action.
204
     *
210
     *
205
     * @return string
211
     * @return string
206
     * @access public
212
     * @access public
Line -... Line 213...
-
 
213
     */
-
 
214
 
207
     */
215
 
208
 
216
	
-
 
217
    function run( )
-
 
218
    {
-
 
219
        // On teste en premier la presence d un appel vers un service
-
 
220
        if ($this->_service != '') {
-
 
221
        	if (file_exists(PROJET_CHEMIN_APPLI.'services/'.$this->_service.'.php')) {
-
 
222
                include_once PROJET_CHEMIN_APPLI.'services/'.$this->_service.'.php' ;
-
 
223
            }
209
    function run( )
224
        }
210
    {
225
        
211
        if ($this->_action == '') {
226
        if ($this->_action == '') {
Line 212... Line 227...
212
            return $this->messageErreur(PROJETCONTROLEUR_ACTION_INVALIDE) ;
227
            return $this->messageErreur(PROJETCONTROLEUR_ACTION_INVALIDE) ;
Line 341... Line 356...
341
    function setAction( $action )
356
    function setAction( $action )
342
    {
357
    {
343
        $this->_action = $action ;
358
        $this->_action = $action ;
344
    } // end of member function setAction
359
    } // end of member function setAction
Line -... Line 360...
-
 
360
 
-
 
361
	/**
-
 
362
     * Permet de fixer la valeur de du service pour l'objet projetControleur. Ce service
-
 
363
     * provient généralement de $_POST['service'] ou $_GET['service']
-
 
364
     *
-
 
365
     * @param int service Le service à appeler provient de l'URL.
-
 
366
     * @return void
-
 
367
     * @access public
-
 
368
     */
-
 
369
    function setService( $service )
-
 
370
    {
-
 
371
        $this->_service = $service ;
-
 
372
    } // end of member function setAction
-
 
373
 
345
 
374
 
346
    /**
375
    /**
347
     * Constructeur.
376
     * Constructeur.
348
     *
377
     *
349
     * @return void
378
     * @return void