22 $date_from = (isset($filter_value[
'from']) && is_object($filter_value[
'from'])) ? $filter_value[
'from'] : null;
23 $date_to = (isset($filter_value[
'to']) && is_object($filter_value[
'to'])) ? $filter_value[
'to'] : null;
25 $join_str =
"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 = " 26 .
$ilDB->quote($this->
getId(),
'integer') .
") ";
27 $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 ";
29 $join_str .=
"AND filter_stloc_{$this->getId()}.value >= " .
$ilDB->quote($date_from,
'date') .
" ";
32 $join_str .=
"AND filter_stloc_{$this->getId()}.value <= " .
$ilDB->quote($date_to,
'date') .
" ";
37 $sql_obj->setJoinStatement($join_str);
51 $datestring = $value .
' 00:00:00';
52 foreach (
$table->getRecords() as $record) {
53 if ($record->getRecordFieldValue($this->getId()) == $datestring && ($record->getId() != $record_id || $record_id == 0)) {
Class ilDclBaseFieldModel.
Class ilDclRecordQueryObject.
static getTableCache($table_id=0)
getTableId()
Get table id.
getRecordQueryFilterObject($filter_value="", ilDclBaseFieldModel $sort_field=null)
Returns a query-object for building the record-loader-sql-query.
checkValidity($value, $record_id=null)
Class ilDclBooleanFieldModel.
if(empty($password)) $table