4 include_once(
'Services/WebServices/ECS/classes/class.ilRemoteObjectBase.php');
40 return "/campusconnect/groups";
50 $this->availability_type = $a_type;
70 $this->start = $a_time;
113 $query =
"SELECT * FROM ".self::DB_TABLE_NAME.
114 " WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ";
117 switch(
$row->availability_type)
119 case self::ACTIVATION_UNLIMITED:
122 case self::ACTIVATION_OFFLINE:
125 case self::ACTIVATION_LIMITED:
126 return time() >
$row->r_start && time <
$row->r_end;
137 $a_fields[
"availability_type"] = array(
"integer", 0);
138 $a_fields[
"availability_start"] = array(
"integer", 0);
139 $a_fields[
"availability_end"] = array(
"integer", 0);
145 $a_fields[
"availability_start"] = array(
"integer", (
int) $this->
getStartingTime());
146 $a_fields[
"availability_end"] = array(
"integer", (
int) $this->
getEndingTime());