3 require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeRange.php";
18 if ($value !== null) {
19 if ($value[
"lower"]) {
22 if ($value[
"upper"]) {
44 $check->addSubItem($date_from);
47 $date_from->setDate($this->
getLowerADT()->getDate());
53 $check->addSubItem($date_until);
56 $date_until->setDate($this->
getUpperADT()->getDate());
63 include_once(
"./Services/Form/classes/class.ilCombinationInputGUI.php");
64 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
68 $lower->setShowTime(
true);
69 $item->addCombinationItem(
"lower", $lower,
$lng->txt(
"from"));
76 $upper->setShowTime(
true);
77 $item->addCombinationItem(
"upper", $upper,
$lng->txt(
"to"));
92 !(
bool) $this->text_input) {
93 return (
bool) $a_post[
"tgl"];
95 return parent::shouldBeImportedFromPost($a_post);
103 include_once
"Services/Calendar/classes/class.ilCalendarUtil.php";
118 $item->setDate(
$end);
119 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
120 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"lower")->setDate(
$start);
121 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"upper")->setDate(
$end);
143 $ilDB = $DIC[
'ilDB'];
153 return "(" . implode(
" AND ", $sql) .
")";
183 return serialize(
$res);
189 $a_value = unserialize($a_value);
190 if (is_array($a_value)) {
191 if (isset($a_value[
"lower"])) {
194 if (isset($a_value[
"upper"])) {
importFromPost(array $a_post=null)
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.
isValidADTDefinition(ilADTDefinition $a_adt_def)
foreach($_POST as $key=> $value) $res
readFilter()
Load value(s) from filter store (in session)
getUpperADT()
Get lower ADT.
getSQLCondition($a_element_id)
setSerializedValue($a_value)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
shouldBeImportedFromPost($a_post)
isInCondition(ilADT $a_adt)
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.