| Line 14... |
Line 14... |
| 14 |
// | |
|
14 |
// | |
|
| 15 |
// | You should have received a copy of the GNU General Public |
|
15 |
// | You should have received a copy of the GNU General Public |
|
| 16 |
// | License along with this library; if not, write to the Free Software |
|
16 |
// | License along with this library; if not, write to the Free Software |
|
| 17 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 18 |
// +------------------------------------------------------------------------------------------------------+
|
18 |
// +------------------------------------------------------------------------------------------------------+
|
| 19 |
// CVS : $Id: participe.class.php,v 1.2 2005-09-27 16:42:00 alexandre_tb Exp $
|
19 |
// CVS : $Id: participe.class.php,v 1.3 2006-07-04 09:27:40 alexandre_tb Exp $
|
| 20 |
/**
|
20 |
/**
|
| 21 |
* Application projet
|
21 |
* Application projet
|
| 22 |
*
|
22 |
*
|
| 23 |
* La classe partiicpe assure la jointure entre projet et Auth
|
23 |
* La classe partiicpe assure la jointure entre projet et Auth
|
| 24 |
* Elle se base sur la table projet_statut_utilisateur
|
24 |
* Elle se base sur la table projet_statut_utilisateur
|
| Line 27... |
Line 27... |
| 27 |
//Auteur original :
|
27 |
//Auteur original :
|
| 28 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
28 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 29 |
//Autres auteurs :
|
29 |
//Autres auteurs :
|
| 30 |
*@author Aucun
|
30 |
*@author Aucun
|
| 31 |
*@copyright Tela-Botanica 2000-2004
|
31 |
*@copyright Tela-Botanica 2000-2004
|
| 32 |
*@version $Revision: 1.2 $
|
32 |
*@version $Revision: 1.3 $
|
| 33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
| 34 |
*/
|
34 |
*/
|
| Line 35... |
Line 35... |
| 35 |
|
35 |
|
| Line 312... |
Line 312... |
| 312 |
return true;
|
312 |
return true;
|
| 313 |
}
|
313 |
}
|
| 314 |
return false ;
|
314 |
return false ;
|
| 315 |
} // end of member function isObservateur
|
315 |
} // end of member function isObservateur
|
| Line -... |
Line 316... |
| - |
|
316 |
|
| - |
|
317 |
/**
|
| - |
|
318 |
* Renvoie true si l'utilisateur passé en paramètre est contributeur du projet passé
|
| - |
|
319 |
* en paramètre.
|
| - |
|
320 |
*
|
| - |
|
321 |
* @param int id_utilisateur L'identifiant de l'utilisateur
|
| - |
|
322 |
* @param int id_projet L'identifiant du projet
|
| - |
|
323 |
* @return bool
|
| - |
|
324 |
* @access public
|
| - |
|
325 |
*/
|
| - |
|
326 |
function isEnAttente( $id_utilisateur, $id_projet, &$objetDB )
|
| - |
|
327 |
{
|
| - |
|
328 |
if ($this->getStatutSurProjetCourant($id_utilisateur, $id_projet, $objetDB) == 3) {
|
| - |
|
329 |
return true;
|
| - |
|
330 |
}
|
| - |
|
331 |
return false ;
|
| Line 316... |
Line 332... |
| 316 |
|
332 |
} // end of member function isObservateur
|
| - |
|
333 |
|
| - |
|
334 |
/**
|
| - |
|
335 |
* Renvoie les infos sur les coordinateurs d'un projet
|
| - |
|
336 |
*
|
| - |
|
337 |
* @param int id_projet L'identifiant du projet
|
| - |
|
338 |
* @return array Un tableau contenant les infos concernants les coordinateurs du projet
|
| - |
|
339 |
* @access public
|
| - |
|
340 |
*/
|
| - |
|
341 |
function getCoordinateurs($id_projet)
|
| 317 |
|
342 |
{
|
| - |
|
343 |
$tableau_resultat = array() ;
|
| - |
|
344 |
|
| - |
|
345 |
$requete = 'select psu_id_utilisateur,'.PROJET_CHAMPS_NOM.','.PROJET_CHAMPS_PRENOM.',' ;
|
| - |
|
346 |
$requete .= PROJET_CHAMPS_MAIL.', ' ;
|
| - |
|
347 |
$requete .= 'psu_date_inscription, ps_id_statut '.
|
| - |
|
348 |
' from projet_statut_utilisateurs, projet_statut,'.PROJET_ANNUAIRE.
|
| - |
|
349 |
' where psu_id_projet='.$id_projet.' and psu_id_utilisateur='.PROJET_CHAMPS_ID.
|
| - |
|
350 |
' and psu_id_statut=ps_id_statut and psu_id_statut=1 order by ps_id_statut,'.PROJET_CHAMPS_NOM;
|
| - |
|
351 |
$resultat = $this->_db->query ($requete) ;
|
| - |
|
352 |
if (DB::isError($resultat)) {
|
| - |
|
353 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
|
| - |
|
354 |
}
|
| - |
|
355 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ORDERED)) {
|
| - |
|
356 |
array_push ($tableau_resultat, $ligne) ;
|
| - |
|
357 |
}
|
| - |
|
358 |
$resultat->free() ;
|
| 318 |
|
359 |
return $tableau_resultat ;
|
| 319 |
|
360 |
} // end of member function getCoordinateurs
|