Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 67 Rev 93
Line 7... Line 7...
7
 * @category	php 5.2
7
 * @category	php 5.2
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	2010 Tela-Botanica
9
 * @copyright	2010 Tela-Botanica
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id: PersonneDao.php 67 2010-05-06 16:51:04Z jpm $
12
 * @version		SVN: $Id: PersonneDao.php 93 2010-06-21 14:15:13Z jpm $
13
 *
13
 *
14
 */
14
 */
15
class PersonneDao extends ColModele {
15
class PersonneDao extends ColModele {
16
	const SERVICE_PERSONNE = 'CoelPersonne';
16
	const SERVICE_PERSONNE = 'CoelPersonne';
17
	const SERVICE_PERSONNE_A_PUBLICATION = 'CoelPublicationAPersonne';
17
	const SERVICE_PERSONNE_A_PUBLICATION = 'CoelPublicationAPersonne';
Line 57... Line 57...
57
		} else if (isset($donnees['cp_fmt_nom_complet'])) {
57
		} else if (isset($donnees['cp_fmt_nom_complet'])) {
58
			$nom_complet = $donnees['cp_fmt_nom_complet'];
58
			$nom_complet = $donnees['cp_fmt_nom_complet'];
59
		}
59
		}
60
		return $nom_complet;
60
		return $nom_complet;
61
	}
61
	}
-
 
62
	
-
 
63
	public function getPersonneCourriels($id) {
-
 
64
		$courriels = '';
-
 
65
		$donnees = $this->getPersonne($id);
-
 
66
		if (isset($donnees['nbElements']) && $donnees['nbElements'] >= 1) {
-
 
67
			$courriels = $donnees['personnes'][0]['cp_truk_courriel'];
-
 
68
		} else if (isset($donnees['cp_truk_courriel'])) {
-
 
69
			$courriels = $donnees['cp_truk_courriel'];
-
 
70
		}
-
 
71
		return $courriels;
-
 
72
	}
62
}
73
}
63
?>
74
?>
64
75