Stud.IP  5.4
_resource_tree_item.php File Reference

Variables

 $children = $resource->children
 
 $has_children = count($children) > 0
 
 $current_user_is_resource_admin = $resource->userHasPermission(User::findCurrent(), 'admin')
 
 $current_user_is_resource_autor = $resource->userHasPermission(User::findCurrent(), 'autor')
 
 $current_user_is_resource_tutor = $resource->userHasPermission(User::findCurrent(), 'tutor')
 
 $booking_plan_is_visible = $resource->bookingPlanVisibleForUser(User::findCurrent())
 

Variable Documentation

◆ $booking_plan_is_visible

$booking_plan_is_visible = $resource->bookingPlanVisibleForUser(User::findCurrent())

◆ $children

$children = $resource->children

◆ $current_user_is_resource_admin

$current_user_is_resource_admin = $resource->userHasPermission(User::findCurrent(), 'admin')

◆ $current_user_is_resource_autor

$current_user_is_resource_autor = $resource->userHasPermission(User::findCurrent(), 'autor')

◆ $current_user_is_resource_tutor

$current_user_is_resource_tutor = $resource->userHasPermission(User::findCurrent(), 'tutor')

◆ $has_children

$has_children = count($children) > 0