3 require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeRange.php";
18 if ($value !== null) {
19 if ($value[
"lower"]) {
22 if ($value[
"upper"]) {
40 $check->addSubItem($date_from);
43 $date_from->setDate($this->
getLowerADT()->getDate());
49 $check->addSubItem($date_until);
52 $date_until->setDate($this->
getUpperADT()->getDate());
58 include_once(
"./Services/Form/classes/class.ilCombinationInputGUI.php");
59 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
64 $item->addCombinationItem(
"lower", $lower, $lng->txt(
"from"));
71 $item->addCombinationItem(
"upper", $upper, $lng->txt(
"to"));
86 !(
bool) $this->text_input) {
87 return (
bool) $a_post[
"tgl"];
89 return parent::shouldBeImportedFromPost($a_post);
97 include_once
"Services/Calendar/classes/class.ilCalendarUtil.php";
109 $item->setDate($start);
112 $item->setDate(
$end);
113 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
114 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"lower")->setDate($start);
115 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"upper")->setDate(
$end);
117 "lower" => (!$start || $start->isNull()) ? null: $start->get(
IL_CAL_DATE),
140 $sql[] = $a_element_id .
" >= " . $ilDB->quote($this->
getLowerADT()->getDate()->
get(
IL_CAL_DATE),
"date");
143 $sql[] = $a_element_id .
" <= " . $ilDB->quote($this->
getUpperADT()->getDate()->
get(
IL_CAL_DATE),
"date");
145 return "(" . implode(
" AND ", $sql) .
")";
175 return serialize(
$res);
181 $a_value = unserialize($a_value);
182 if (is_array($a_value)) {
183 if (isset($a_value[
"lower"])) {
186 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.
Create styles array
The data for the language used.
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)