Stud.IP  trunk Revision
resourcesFunc.inc.php File Reference

Namespaces

 resources
 

Functions

 allowCreateRooms ($user_id='')
 
 getLockPeriod ($type, $timestamp1='', $timestamp2='')
 
 isLockPeriod ($type, $timestamp='')
 
 changeLockableRecursiv ($resource_id, $state)
 
 getGlobalPerms ($user_id)
 
 getFormattedResult ($result, $mode="bad", $bad_message_text='', $good_message_text='')
 
 getDateAssigenedRoom ($date_id)
 
 getResourceObjectName ($id)
 
 getResourceObjectCategory ($id)
 
 getMyRoomRequests ($user_id='', $semester_id=null, $only_not_closed=true, $single_request=null, $sem_type=null, $faculty=null, $tagged=null, $regular=null)
 
 cmp_assign_events ($a, $b)
 
 cmp_resources ($a, $b)
 
 checkAvailableResources ($id)
 
 checkObjektAdministrablePerms ($resource_object_owner_id, $user_id='')
 
 search_administrable_seminars ($search_string='', $user_id='')
 
 search_administrable_objects ($search_string='', $user_id='', $sem=TRUE)
 
 search_my_objects ($search_string='', $user_id='', $sem=TRUE)
 
 search_admin_user ($search_string='')
 
 search_objects ($search_string='', $user_id='', $sem=TRUE)
 
 showSearchForm ($name, $search_string='', $user_only=FALSE, $administrable_objects_only=FALSE, $admins=FALSE, $allow_all=FALSE, $sem=TRUE, $img_dir="left")
 
 getResourcesCategories ()
 
 hasGlobalOccupationAccess ()
 

Function Documentation

◆ allowCreateRooms()

allowCreateRooms (   $user_id = '')
Here is the call graph for this function:

◆ changeLockableRecursiv()

changeLockableRecursiv (   $resource_id,
  $state 
)

changeLockableRecursiv

sets the lockale option for all childs to state

Parameters
stringthe key for the resource object
booleanif set, all childs will be lockable
Here is the call graph for this function:

◆ checkAvailableResources()

checkAvailableResources (   $id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkObjektAdministrablePerms()

checkObjektAdministrablePerms (   $resource_object_owner_id,
  $user_id = '' 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmp_assign_events()

cmp_assign_events (   $a,
  $b 
)

◆ cmp_resources()

cmp_resources (   $a,
  $b 
)

◆ getDateAssigenedRoom()

getDateAssigenedRoom (   $date_id)
Here is the call graph for this function:

◆ getFormattedResult()

getFormattedResult (   $result,
  $mode = "bad",
  $bad_message_text = '',
  $good_message_text = '' 
)
Here is the call graph for this function:

◆ getGlobalPerms()

getGlobalPerms (   $user_id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLockPeriod()

getLockPeriod (   $type,
  $timestamp1 = '',
  $timestamp2 = '' 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMyRoomRequests()

getMyRoomRequests (   $user_id = '',
  $semester_id = null,
  $only_not_closed = true,
  $single_request = null,
  $sem_type = null,
  $faculty = null,
  $tagged = null,
  $regular = null 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getResourceObjectCategory()

getResourceObjectCategory (   $id)
Here is the call graph for this function:

◆ getResourceObjectName()

getResourceObjectName (   $id)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getResourcesCategories()

getResourcesCategories ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasGlobalOccupationAccess()

hasGlobalOccupationAccess ( )

Checks if current user has global access to resource occupation plans.

Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isLockPeriod()

isLockPeriod (   $type,
  $timestamp = '' 
)

isLockPeriod

determines, if a lock period could be found in resources_locks and locking is active

Parameters
intthe timestamp, if left, the actual time
Returns
boolean true or false
Here is the call graph for this function:
Here is the caller graph for this function:

◆ search_admin_user()

search_admin_user (   $search_string = '')
Here is the call graph for this function:
Here is the caller graph for this function:

◆ search_administrable_objects()

search_administrable_objects (   $search_string = '',
  $user_id = '',
  $sem = TRUE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ search_administrable_seminars()

search_administrable_seminars (   $search_string = '',
  $user_id = '' 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ search_my_objects()

search_my_objects (   $search_string = '',
  $user_id = '',
  $sem = TRUE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ search_objects()

search_objects (   $search_string = '',
  $user_id = '',
  $sem = TRUE 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showSearchForm()

showSearchForm (   $name,
  $search_string = '',
  $user_only = FALSE,
  $administrable_objects_only = FALSE,
  $admins = FALSE,
  $allow_all = FALSE,
  $sem = TRUE,
  $img_dir = "left" 
)
Here is the call graph for this function: