Skip to content
Snippets Groups Projects
Status.php 1.39 KiB
Newer Older
  • Learn to ignore specific revisions
  • SNA's avatar
    SNA committed
    <?php
    /*
    
    *    Copyright 2008-2011 Maarch
    
    SNA's avatar
    SNA committed
    *
    *  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 Status Object (herits of the BaseObject class)
    
    SNA's avatar
    SNA committed
    * @file
    * @author Claire Figueras <dev@maarch.org>
    * @date $date$
    * @version $Revision$
    * @ingroup core
    */
    
    // Loads the required class
    try {
    
        require_once('core/class/BaseObject.php');
    
    SNA's avatar
    SNA committed
    } catch (Exception $e){
    
        echo functions::xssafe($e->getMessage()).' // ';
    
    * @brief  Status Object, herits of the BaseObject class
    
    SNA's avatar
    SNA committed
    *
    * @ingroup core
    */
    class Status extends BaseObject
    {
    
    SNA's avatar
    SNA committed
    	* Returns the string representing the Status object
    	*
    	* @return string The status label (label_status)
    	*/
    
        public function __toString()
        {
            return $this->label_status;
        }