Skip to content
Snippets Groups Projects
Select Git revision
  • a3da1483a9e689846179159355badfec8073dbec
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

FoldersCopy.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 62.73 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 = '';