Skip to content
Snippets Groups Projects
usergroups.php 1.42 KiB
<?php
/*
*    Copyright 2008,2009,2010 Maarch
*
*  This file is part of Maarch Framework.
*
*   Maarch Framework is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   Maarch Framework is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*    along with Maarch Framework.  If not, see <http://www.gnu.org/licenses/>.
*/

/**
* @brief  Contains the usergroups Object (herits of the BaseObject class)
* 
* 
* @file
* @author Claire Figueras <dev@maarch.org>
* @date $date$
* @version $Revision$
* @ingroup core
*/

// Loads the required class
try {
	require_once("core/class/BaseObject.php");
} catch (Exception $e){
	echo functions::xssafe($e->getMessage()).' // ';
}


/**
* @brief  usergroups Object, herits of the BaseObject class 
*
* @ingroup core
*/
class usergroups  extends BaseObject
{
	/**
	* Returns the string representing the usergroups object
	*
	* @return string The usergroup label (group_desc field in the usergroups table)
	*/
	function __toString(){
		return $this->group_desc; 
	}
	
}
?>