Stud.IP  4.2 Revision
show_room_groups.php File Reference

Variables

 $query
 
 $resources = DBManager::get()->fetchGroupedPairs($query)
 
if(count($resources) > 0) else
 

Variable Documentation

◆ $query

$query
Initial value:
= "SELECT `parent_id`, `resource_id`
FROM `resources_objects`
INNER JOIN `resources_categories` USING(`category_id`)
WHERE `is_room` = 1"

show_room_groups.php

use this script to get a sample config_room_groups.inc.php based on existing rooms and resources structure, writes to STDOUT

Author
André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de public

◆ $resources

$resources = DBManager::get()->fetchGroupedPairs($query)

◆ else

if (count( $resources) > 0) else
Initial value:
{
trigger_error('No rooms found in database.', E_USER_ERROR)