3 require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeRange.php";
18 if ($value !== null) {
19 if ($value[
"lower"]) {
22 if ($value[
"upper"]) {
42 $check->addSubItem($date_from);
45 $date_from->setDate($this->
getLowerADT()->getDate());
51 $check->addSubItem($date_until);
54 $date_until->setDate($this->
getUpperADT()->getDate());
60 include_once(
"./Services/Form/classes/class.ilCombinationInputGUI.php");
61 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
66 $item->addCombinationItem(
"lower", $lower,
$lng->txt(
"from"));
73 $item->addCombinationItem(
"upper", $upper,
$lng->txt(
"to"));
88 !(
bool) $this->text_input) {
89 return (
bool) $a_post[
"tgl"];
91 return parent::shouldBeImportedFromPost($a_post);
99 include_once
"Services/Calendar/classes/class.ilCalendarUtil.php";
114 $item->setDate(
$end);
115 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
116 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"lower")->setDate(
$start);
117 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"upper")->setDate(
$end);
139 $ilDB = $DIC[
'ilDB'];
149 return "(" . implode(
" AND ", $sql) .
")";
179 return serialize(
$res);
185 $a_value = unserialize($a_value);
186 if (is_array($a_value)) {
187 if (isset($a_value[
"lower"])) {
190 if (isset($a_value[
"upper"])) {
setSerializedValue($a_value)
isValidADTDefinition(ilADTDefinition $a_adt_def)
isLargerOrEqual(ilADT $a_adt)
Check if given ADT is larger or equal than self.
isInbetweenOrEqual(ilADT $a_adt_from, ilADT $a_adt_to)
Check if self is inbetween given ADTs (inclusive)
isSmallerOrEqual(ilADT $a_adt)
Check if given ADT is smaller or equal than self.
extractPostValues(array $a_post=null)
Extract data from (post) values.
importFromPost(array $a_post=null)
foreach($_POST as $key=> $value) $res
readFilter()
Load value(s) from filter store (in session)
getSQLCondition($a_element_id)
getUpperADT()
Get lower ADT.
shouldBeImportedFromPost($a_post)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
ADT definition base class.
getElementId()
Get element id.
static parseIncomingDate($a_value, $a_add_time=null)
Try to parse incoming value to date object.
getLowerADT()
Get lower ADT.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
addToElementId($a_add)
Add sub-element.
isInCondition(ilADT $a_adt)