/** * guess sexe by firstname * * @return boolean true if sexe found, false if sexe not found */ function guessSex() { $sex_found = CFirstNameAssociativeSex::getSexFor($this->prenom); if ($sex_found && $sex_found != "u") { $this->sex = $sex_found; return true; } return false; }