24 $from = (isset($filter_value[
'from'])) ? (
int) $filter_value[
'from'] : null;
25 $to = (isset($filter_value[
'to'])) ? (
int) $filter_value[
'to'] : null;
27 $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 = " 28 .
$ilDB->quote($this->
getId(),
'integer') .
") ";
29 $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";
30 if (!is_null(
$from)) {
31 $join_str .=
" AND filter_stloc_{$this->getId()}.value >= " .
$ilDB->quote(
$from,
'integer');
34 $join_str .=
" AND filter_stloc_{$this->getId()}.value <= " .
$ilDB->quote($to,
'integer');
39 $sql_obj->setJoinStatement($join_str);
53 $valid = parent::checkValidity($value, $record_id);
55 if (!is_numeric($value) && $value !=
'') {
Class ilDclBaseFieldModel.
Class ilDclRecordQueryObject.
Class ilDclBooleanFieldModel.
checkValidity($value, $record_id=null)
getRecordQueryFilterObject($filter_value="", ilDclBaseFieldModel $sort_field=null)
Returns a query-object for building the record-loader-sql-query.