4 include_once(
'Services/WebServices/ECS/classes/class.ilRemoteObjectBase.php');
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)
118 case self::ACTIVATION_UNLIMITED:
121 case self::ACTIVATION_OFFLINE:
124 case self::ACTIVATION_LIMITED:
125 return time() >
$row->r_start && time <
$row->r_end;
136 $a_fields[
"availability_type"] = array(
"integer", 0);
137 $a_fields[
"r_start"] = array(
"integer", 0);
138 $a_fields[
"r_end"] = array(
"integer", 0);
145 $a_fields[
"r_end"] = array(
"integer", $this->
getEndingTime());
158 $this->
setAvailabilityType($a_ecs_content->status ==
'online' ? self::ACTIVATION_UNLIMITED : self::ACTIVATION_OFFLINE);
163 include_once(
'./Services/WebServices/ECS/classes/class.ilECSUtils.php');
164 include_once(
'./Services/WebServices/ECS/classes/class.ilECSDataMappingSetting.php');