32 $date_from = (isset($filter_value[
'from']) && is_object($filter_value[
'from'])) ? $filter_value[
'from'] : null;
33 $date_to = (isset($filter_value[
'to']) && is_object($filter_value[
'to'])) ? $filter_value[
'to'] : null;
36 =
"INNER JOIN il_dcl_record_field AS filter_record_field_{$this->getId()} ON (filter_record_field_{$this->getId()}.record_id = record.id AND filter_record_field_{$this->getId()}.field_id = " 37 .
$ilDB->quote($this->
getId(),
'integer') .
") ";
38 $join_str .=
"INNER JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS filter_stloc_{$this->getId()} ON (filter_stloc_{$this->getId()}.record_field_id = filter_record_field_{$this->getId()}.id ";
40 $join_str .=
"AND filter_stloc_{$this->getId()}.value >= " .
$ilDB->quote($date_from,
'date') .
" ";
43 $join_str .=
"AND filter_stloc_{$this->getId()}.value <= " .
$ilDB->quote($date_to,
'date') .
" ";
48 $sql_obj->setJoinStatement($join_str);
65 $datestring = $value .
' 00:00:00';
66 foreach ($table->getRecords() as $record) {
67 if ($record->getRecordFieldValue($this->getId()) == $datestring && ($record->getId() != $record_id || $record_id == 0)) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTableId()
Get table id.
static getTableCache(int $table_id=null)
getRecordQueryFilterObject( $filter_value="", ?ilDclBaseFieldModel $sort_field=null)
Returns a query-object for building the record-loader-sql-query.
checkValidity($value, ?int $record_id=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...