3require_once 
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeRange.php";
 
   16                $this->text_input = (bool)$a_value;
 
   49                        if(!(
bool)$this->text_input)
 
   61                        $date_from->setShowTime(
false);
 
   62                        $check->addSubItem($date_from);
 
   66                                $date_from->setDate($this->
getLowerADT()->getDate());
 
   71                        $date_until->setShowTime(
false);
 
   72                        $check->addSubItem($date_until);
 
   76                                $date_until->setDate($this->
getUpperADT()->getDate());
 
   80                        if(!(
bool)$this->text_input)
 
   82                                $check->setChecked($checked);
 
   94                        include_once(
"./Services/Form/classes/class.ilCombinationInputGUI.php");
 
   95                        include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
 
  100                        $item->addCombinationItem(
"lower", $lower, 
$lng->txt(
"from"));
 
  108                        $item->addCombinationItem(
"upper", $upper, 
$lng->txt(
"to"));
 
  125                        !(
bool)$this->text_input)
 
  127                        return (
bool)$a_post[
"tgl"];
 
  129                return parent::shouldBeImportedFromPost($a_post);
 
  138                        $start = $end = 
null;
 
  140                        include_once 
"Services/ADT/classes/class.ilADTDateSearchUtil.php";
 
  143                                (
bool)$this->text_input)
 
  156                        if($start && $end && $start > $end)
 
  177                                $item->setDate($start);
 
  180                                $item->setDate($end);           
 
  182                                if(!(
bool)$this->text_input)
 
  185                                        $item->setChecked(
true);                                                        
 
  188                        else if(array_key_exists($this->
getElementId(), $this->table_filter_fields))
 
  190                                $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"lower")->setDate($start);                                
 
  191                                $this->table_filter_fields[$this->
getElementId()]->getCombinationItem(
"upper")->setDate($end);                          
 
  193                                        "lower" => (!$start || $start->isNull()) ? 
null: $start->get(
IL_CAL_DATE),
 
  194                                        "upper" => (!$end || $end->isNull()) ? 
null : $end->get(
IL_CAL_DATE)
 
  204                                !(
bool)$this->text_input)                               
 
  207                                $item->setChecked(
false);       
 
  233                        return "(".implode(
" AND ", $sql).
")";
 
  269                        return serialize(
$res);
 
  275                $a_value = unserialize($a_value);
 
  276                if(is_array($a_value))
 
  278                        if(isset($a_value[
"lower"]))
 
  282                        if(isset($a_value[
"upper"]))
 
setSerializedValue($a_value)
Set current value(s) in serialized form (for easy persisting)
isInCondition(ilADTDate $a_adt)
addToForm()
Add ADT-specific fields to form.
loadFilter()
Load filter value(s) into ADT.
isValidADTDefinition(ilADTDefinition $a_adt_def)
Check if given ADT definition is valid.
setTextInputMode($a_value)
getSerializedValue()
Get current value(s) in serialized form (for easy persisting)
shouldBeImportedFromPost(array $a_post)
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
importFromPost(array $a_post=null)
Import values from (search) form request POST data.
static handleTextInputPost($a_mode, $a_post)
Import text input post data.
static handleSelectInputPost($a_mode, $a_post)
Import select post data.
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)