4 include_once(
'Services/WebServices/ECS/classes/class.ilRemoteObjectBase.php');
34 return self::DB_TABLE_NAME;
39 return "/campusconnect/courselinks";
49 $this->availability_type =
$a_type;
69 $this->start = $a_time;
112 $query =
"SELECT * FROM " . self::DB_TABLE_NAME .
113 " WHERE obj_id = " . $ilDB->quote($a_obj_id,
'integer') .
" ";
116 switch (
$row->availability_type) {
117 case self::ACTIVATION_UNLIMITED:
120 case self::ACTIVATION_OFFLINE:
123 case self::ACTIVATION_LIMITED:
135 $a_fields[
"availability_type"] =
array(
"integer", 0);
136 $a_fields[
"r_start"] =
array(
"integer", 0);
137 $a_fields[
"r_end"] =
array(
"integer", 0);
157 $this->
setAvailabilityType($a_ecs_content->status ==
'online' ? self::ACTIVATION_UNLIMITED : self::ACTIVATION_OFFLINE);
162 include_once(
'./Services/WebServices/ECS/classes/class.ilECSUtils.php');
163 include_once(
'./Services/WebServices/ECS/classes/class.ilECSDataMappingSetting.php');
172 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
const MAPPING_IMPORT_RCRS
getAvailabilityType()
get availability type
getServerId()
Get current server id.
static getEContentDefinition($a_resource_id)
Get econtent / metadata definition.
importMetadataFromJson($a_json, ilECSSetting $a_server, array $a_definition, $a_mapping_mode)
Add advanced metadata to json (export)
setStartingTime($a_time)
set starting time
updateCustomFromECSContent(ilECSSetting $a_server, $a_ecs_content)
foreach($_POST as $key=> $value) $res
const ACTIVATION_UNLIMITED
setEndingTime($a_time)
set ending time
Storage of ECS imported objects.
setAvailabilityType($a_type)
Set Availability type.
Remote object app base class.
Create styles array
The data for the language used.
doReadCustomFields($a_row)
getEndingTime()
get ending time
static _lookupOnline($a_obj_id)
Lookup online.
getStartingTime()
get starting time
setContentId($a_content_id)
Set content id.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
doCreateCustomFields(array &$a_fields)
doUpdateCustomFields(array &$a_fields)