Skip to content
Snippets Groups Projects
docservers.php 1.32 KiB
Newer Older
  • Learn to ignore specific revisions
  • Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *   Copyright 2008-2011 Maarch
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent 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
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *   along with Maarch Framework.  If not, see <http://www.gnu.org/licenses/>.
    
    */
    
    /**
    * @brief  Contains the docservers Object (herits of the BaseObject class)
    * 
    * 
    * @file
    * @author Laurent Giovannoni <dev@maarch.org>
    * @date $date$
    * @version $Revision$
    * @ingroup core
    */
    
    // Loads the required class
    try {
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
        require_once("core/class/BaseObject.php");
    } catch (Exception $e) {
    
        echo functions::xssafe($e->getMessage()).' // ';
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    class docservers extends BaseObject
    {
        /**
         *Print a viewable string to render the object.
         * @return string Rendering of the object
         */
        public function __toString()
        {
            return $this->device_label;
        }
    }