4 include_once(
'Services/WebServices/ECS/classes/class.ilRemoteObjectBase.php');
39 return "/campusconnect/tests";
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[
"availability_start"] = array(
"integer", 0);
138 $a_fields[
"availability_end"] = array(
"integer", 0);
144 $a_fields[
"availability_start"] = array(
"integer",(
int) $this->
getStartingTime());
145 $a_fields[
"availability_end"] = array(
"integer", (
int) $this->
getEndingTime());