Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

HelpTourUser.class.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    functions.php 60.98 KiB
    <?php
    # Lifter002: DONE - not applicable
    # Lifter003: TEST
    # Lifter007: TODO
    # Lifter010: DONE - not applicable
    /**
     * functions.php
     *
     * The Stud.IP-Core functions. Look to the descriptions to get further details
     *
     * This program 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 2 of
     * the License, or (at your option) any later version.
     *
     * @author      Cornelis Kater <ckater@gwdg.de>
     * @author      Suchi & Berg GmbH <info@data-quest.de>
     * @author      Ralf Stockmann <rstockm@gwdg.de>
     * @author      André Noack <andre.noack@gmx.net>
     * @license     http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
     * @category    Stud.IP
     * @access      public
     * @package     studip_cores
     * @modulegroup library
     * @module      functions.php
     */
    
    // +---------------------------------------------------------------------------+
    // This file is part of Stud.IP
    // functions.php
    // Stud.IP Kernfunktionen
    // Copyright (C) 2002 Cornelis Kater <ckater@gwdg.de>, Suchi & Berg GmbH <info@data-quest.de>,
    // Ralf Stockmann <rstockm@gwdg.de>, André Noack André Noack <andre.noack@gmx.net>
    // +---------------------------------------------------------------------------+
    // This program 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 2
    // of the License, or any later version.
    // +---------------------------------------------------------------------------+
    // This program 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 this program; if not, write to the Free Software
    // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    // +---------------------------------------------------------------------------+
    
    
    require_once 'lib/object.inc.php';
    require_once 'lib/user_visible.inc.php';
    
    /**
     * returns an array containing name and type of the passed objeact
     * denoted by $range_id
     *
     * @global array $SEM_TYPE
     * @global array $INST_TYPE
     * @global array $SEM_TYPE_MISC_NAME
     *
     * @param string $range_id    the id of the object
     * @param string $object_type the type of the object
     *
     * @return array  an array containing name and type of the object
     */
    function get_object_name($range_id, $object_type)
    {
        global $SEM_TYPE,$INST_TYPE, $SEM_TYPE_MISC_NAME;
    
        $name = '';