16,7 → 16,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: participe.class.php,v 1.2 2005-09-27 16:42:00 alexandre_tb Exp $ |
// CVS : $Id: participe.class.php,v 1.3 2006-07-04 09:27:40 alexandre_tb Exp $ |
/** |
* Application projet |
* |
29,7 → 29,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
314,8 → 314,49 |
return false ; |
} // end of member function isObservateur |
|
/** |
* Renvoie true si l'utilisateur passé en paramètre est contributeur du projet passé |
* en paramètre. |
* |
* @param int id_utilisateur L'identifiant de l'utilisateur |
* @param int id_projet L'identifiant du projet |
* @return bool |
* @access public |
*/ |
function isEnAttente( $id_utilisateur, $id_projet, &$objetDB ) |
{ |
if ($this->getStatutSurProjetCourant($id_utilisateur, $id_projet, $objetDB) == 3) { |
return true; |
} |
return false ; |
} // end of member function isObservateur |
|
/** |
* Renvoie les infos sur les coordinateurs d'un projet |
* |
* @param int id_projet L'identifiant du projet |
* @return array Un tableau contenant les infos concernants les coordinateurs du projet |
* @access public |
*/ |
function getCoordinateurs($id_projet) |
{ |
$tableau_resultat = array() ; |
|
|
$requete = 'select psu_id_utilisateur,'.PROJET_CHAMPS_NOM.','.PROJET_CHAMPS_PRENOM.',' ; |
$requete .= PROJET_CHAMPS_MAIL.', ' ; |
$requete .= 'psu_date_inscription, ps_id_statut '. |
' from projet_statut_utilisateurs, projet_statut,'.PROJET_ANNUAIRE. |
' where psu_id_projet='.$id_projet.' and psu_id_utilisateur='.PROJET_CHAMPS_ID. |
' and psu_id_statut=ps_id_statut and psu_id_statut=1 order by ps_id_statut,'.PROJET_CHAMPS_NOM; |
$resultat = $this->_db->query ($requete) ; |
if (DB::isError($resultat)) { |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ; |
} |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ORDERED)) { |
array_push ($tableau_resultat, $ligne) ; |
} |
$resultat->free() ; |
return $tableau_resultat ; |
} // end of member function getCoordinateurs |
} // end of participe |
?> |