18 declare(strict_types=1);
48 return self::DB_TABLE_NAME;
53 return "/campusconnect/tests";
63 $this->availability_type = $a_type;
83 $this->start = $a_time;
103 $this->end = $a_time;
126 $query =
"SELECT * FROM " . self::DB_TABLE_NAME .
127 " WHERE obj_id = " . $ilDB->quote($a_obj_id,
'integer') .
" ";
130 switch ($row->availability_type) {
131 case self::ACTIVATION_UNLIMITED:
134 case self::ACTIVATION_OFFLINE:
137 case self::ACTIVATION_LIMITED:
138 return time() > $row->r_start && time < $row->r_end;
149 $a_fields[
"availability_type"] = array(
"integer", 0);
150 $a_fields[
"availability_start"] = array(
"integer", 0);
151 $a_fields[
"availability_end"] = array(
"integer", 0);
157 $a_fields[
"availability_start"] = array(
"integer",(
int) $this->
getStartingTime());
158 $a_fields[
"availability_end"] = array(
"integer", (
int) $this->
getEndingTime());
doReadCustomFields($a_row)
setEndingTime($a_time)
set ending time
doCreateCustomFields(array &$a_fields)
getEndingTime()
get ending time
setStartingTime($a_time)
set starting time
Remote object app base class.
updateCustomFromECSContent(ilECSSetting $a_server, $a_ecs_content)
setAvailabilityType($a_type)
Set Availability type.
getAvailabilityType()
get availability type
getStartingTime()
get starting time
doUpdateCustomFields(array &$a_fields)
const ACTIVATION_UNLIMITED
static _lookupOnline($a_obj_id)
Lookup online.