<?php
/*
 * Gasell: Copyright 2005 Linux-Nantes Association <contact@linux-nantes.fr.eu.org>
 *
 * You should have received a copy of the GNU Public
 * License along with this package; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Authors: Raude-Morvan Damien (DrazziB) <drazzib@drazzib.com>
 *
 * Histoire
 *  * 20/12/02005 DrazziB : Création de l'action
 */

/**
 * Recuperation d'une participation
 *
 * @param string $args['code'] : identifiant de la participation
 * 
 * @return Participation
 */

require_once GASELL_BASE . '/lib/Personne.php';
require_once GASELL_BASE . '/lib/Activite.php';
require_once GASELL_BASE . '/lib/Participation.php';

if (isset($args['code']) &&  $args['code'] != "")
 {
	$result = new Participation($args['code']);
 }
else
 {
	$this->errorMessage("Impossible de charger la participation : aucun identifiant fournit !");
	$result = false;
 }
?>