Stud.IP  jlu_4.3 Revision 64286
resource_migration.php File Reference

Variables

 $GLOBALS ['RESOURCE_CATEGORY_CLASS_MAPPING']
 
 $GLOBALS ['RESOURCE_CATEGORY_RENAME']
 
 $GLOBALS ['RESOURCE_ADMINISTRATION_PERSON_URL'] = 'https://example.org/person/%s'
 
 $GLOBALS ['RESOURCE_MIGRATION_RESOURCE_TREES_TO_BE_DELETED']
 
 $GLOBALS ['RESOURCE_MIGRATION_MIGRATE_COURSE_PERMISSIONS'] = true
 
 $GLOBALS ['RESOURCE_PROPERTIES_TO_BE_DELETED']
 
 $GLOBALS ['RESOURCE_MIGRATION_SPECIALRESOURCESPLUGIN'] = true
 
 $GLOBALS ['RESOURCE_MIGRATION_PROPERTY_GROUP_PROPERTY_NAME_REGEX'] = '/\:\ /'
 
 $GLOBALS ['RESOURCE_MIGRATION_NEW_PROPERTY_GROUP_LIST']
 
 $GLOBALS ['RESOURCE_PROPERTIES_TO_BE_MODIFIED']
 
 $GLOBALS ['RESOURCE_PROPERTIES_TO_BE_MERGED']
 

Variable Documentation

◆ $GLOBALS [1/11]

$GLOBALS[ 'RESOURCE_ADMINISTRATION_PERSON_URL'] = 'https://example.org/person/%s'

◆ $GLOBALS [2/11]

$GLOBALS[ 'RESOURCE_CATEGORY_CLASS_MAPPING']
Initial value:
= [
'Campus' => 'Location',
'Gebäude' => 'Building',
'Hörsaal' => 'Room',
'Raum' => 'Room',
'Sporthalle' => 'Room',
'Standort' => 'Location',
'Übungsraum' => 'Room',
'Campusbereich' => 'ResourceLabel',
'Gerät' => 'Device',
'Fahrrad' => 'Bicycle',
'KfZ' => 'Car'
]

◆ $GLOBALS [3/11]

$GLOBALS[ 'RESOURCE_CATEGORY_RENAME']
Initial value:
= [
'KfZ' => 'Kfz'
]

◆ $GLOBALS [4/11]

$GLOBALS[ 'RESOURCE_MIGRATION_MIGRATE_COURSE_PERMISSIONS'] = true

Whether course bound resource permissions shall be migrated. If this is set to false, all course bound permissions are deleted. In case this is set to true, all course members get autor permissions on that resources where the course had permissions.

◆ $GLOBALS [5/11]

$GLOBALS[ 'RESOURCE_MIGRATION_NEW_PROPERTY_GROUP_LIST']
Initial value:
= [
]

◆ $GLOBALS [6/11]

$GLOBALS[ 'RESOURCE_MIGRATION_PROPERTY_GROUP_PROPERTY_NAME_REGEX'] = '/\:\ /'

This variable defines a regex for splitting property names into the real name and the property group that has been put in the property name in the old room and resource management system.

◆ $GLOBALS [7/11]

$GLOBALS[ 'RESOURCE_MIGRATION_RESOURCE_TREES_TO_BE_DELETED']
Initial value:
= [
'61da63b944a6b6752f42d9b4ed203330'
]

◆ $GLOBALS [8/11]

$GLOBALS[ 'RESOURCE_MIGRATION_SPECIALRESOURCESPLUGIN'] = true

This variable defines if the resource migration shall migrate course bound permissions into the tables of the SpecialResourcesPlugin that can handle resources in courses.

◆ $GLOBALS [9/11]

$GLOBALS[ 'RESOURCE_PROPERTIES_TO_BE_DELETED']
Initial value:
= [
'c4352a580051a81830ef5980941c9e06'
]

This variable contains the IDs of resource property definitions that shall be deleted. If a resource property is listed here, its connections to resources, resource requests and resource categories are also deleted.

◆ $GLOBALS [10/11]

$GLOBALS[ 'RESOURCE_PROPERTIES_TO_BE_MERGED']

◆ $GLOBALS [11/11]

$GLOBALS[ 'RESOURCE_PROPERTIES_TO_BE_MODIFIED']

Array explaination: The key of an array entry is the old name of the property. The value consists of an associative array with the following fields:

  • name: The name of the new property-
  • old_type: The type of the old property.
  • requestable: Whether the property shall be requestable (optional).
  • searchable: Whether the property can be used as search parameter or not (optional).