Stud.IP  5.4
_grouped_room_list.php File Reference

Variables

if( $grouped_rooms)(!empty( $title))($title) ?></h1 ><? endif ?><? foreach($grouped_rooms as $group) $buildings = $group['buildings']
 
foreach( $buildings as $building_group)( 'Raum') ?></th >< th class foreach($building_group['rooms'] as $resource) if(!empty($link_template)) else
 
 if ( $user)
 

Variable Documentation

◆ $buildings

if($grouped_rooms) (!empty($title)) ( $title) ?></h1 ><? endif ?><? foreach( $grouped_rooms as $group) $buildings = $group['buildings']

Template parameters:

  • $title: The list title
  • $grouped_rooms: The rooms, grouped by RoomManager::groupRooms
  • $link_template: An optional link template where the room-ID is represented by the only "%s" placeholder. If $link_template is not set, the link to the booking plan of the room is generated.
  • $show_in_dialog: Whether to show the room link in a dialog (true) or not (false).

◆ else

foreach ($buildings as $building_group) ('Raum') ?> </th> <th class foreach ( $building_group[ 'rooms'] as $resource) if (!empty( $link_template)) else
Initial value:
{
$room_link = $resource->getActionLink('booking_plan')
endif foreach($table_keys as $key)</span ><?=htmlReady( $key[ 'text']) ?></li ><? endforeach ?>< li class="map-key"><?=Icon::create( 'refresh', Icon::ROLE_INFO, [ 'class'=> $resource
Definition: planning.php:111

◆ if

if($user)
Initial value:
=> $resource->userHasPermission($user, 'admin'),
'show_tutor_actions' => $resource->userHasPermission($user, 'tutor'),
'show_autor_actions' => $resource->userHasPermission($user, 'autor'),
'show_user_actions' => $resource->userHasPermission($user, 'user'),
'user_has_booking_rights' => $resource->userHasBookingRights($user)]
if(count($users)===0)<?=_( 'Es wurden keine Benutzer gefunden.') ?></td ></tr ><? else:?><? foreach(array_values( $users) as $index=> $user
Definition: show_role.php:84
endif foreach($table_keys as $key)</span ><?=htmlReady( $key[ 'text']) ?></li ><? endforeach ?>< li class="map-key"><?=Icon::create( 'refresh', Icon::ROLE_INFO, [ 'class'=> $resource
Definition: planning.php:111