3require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeRange.php";
45 $date_from->setShowTime(
true);
46 $check->addSubItem($date_from);
50 $date_from->setDate($this->
getLowerADT()->getDate());
55 $date_until->setShowTime(
true);
56 $check->addSubItem($date_until);
60 $date_until->setDate($this->
getUpperADT()->getDate());
69 include_once(
"./Services/Form/classes/class.ilCombinationInputGUI.php");
70 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
74 $lower->setShowTime(
true);
75 $item->addCombinationItem(
"lower", $lower,
$lng->txt(
"from"));
83 $upper->setShowTime(
true);
84 $item->addCombinationItem(
"upper", $upper,
$lng->txt(
"to"));
100 !(
bool)$this->text_input)
102 return (
bool)$a_post[
"tgl"];
104 return parent::shouldBeImportedFromPost($a_post);
113 include_once
"Services/Calendar/classes/class.ilCalendarUtil.php";
130 $item->setDate($end);
132 else if(array_key_exists($this->
getElementId(), $this->table_filter_fields))
134 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"lower")->setDate(
$start);
135 $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"upper")->setDate($end);
138 "upper" => (!$end || $end->isNull()) ?
null : $end->get(
IL_CAL_DATETIME)
170 return "(".implode(
" AND ", $sql).
")";
208 return serialize(
$res);
214 $a_value = unserialize($a_value);
215 if(is_array($a_value))
217 if(isset($a_value[
"lower"]))
221 if(isset($a_value[
"upper"]))
An exception for terminatinating execution or to throw for unit testing.
isValidADTDefinition(ilADTDefinition $a_adt_def)
Check if given ADT definition is valid.
addToForm()
Add ADT-specific fields to form.
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
loadFilter()
Load filter value(s) into ADT.
setSerializedValue($a_value)
Set current value(s) in serialized form (for easy persisting)
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
isInCondition(ilADT $a_adt)
Compare directly against ADT.
importFromPost(array $a_post=null)
Import values from (search) form request POST data.
getSerializedValue()
Get current value(s) in serialized form (for easy persisting)
ADT definition base class.
getUpperADT()
Get lower ADT.
getLowerADT()
Get lower ADT.
readFilter()
Load value(s) from filter store (in session)
extractPostValues(array $a_post=null)
Extract data from (post) values.
addToElementId($a_add)
Add sub-element.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
getElementId()
Get element id.
writeFilter($a_value=null)
Write value(s) to filter store (in session)
isSmallerOrEqual(ilADT $a_adt)
Check if given ADT is smaller or equal than self.
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)
static parseIncomingDate($a_value, $a_add_time=null)
Try to parse incoming value to date object.
@classDescription Date and time handling