<?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 activite
 *
 * @param string $args['code'] : identifiant de l'activite
 * 
 * @return Activite
 */

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

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