143 return "il_dcl_tview_set";
386 $this->visible_create = !$not_visible_create;
421 $this->visible_edit = !$not_visible;
445 public function isLocked(
bool $creation_mode) : bool
466 if ($field_name ==
'filter_value' && is_array($this->filter_value)) {
467 return json_encode($this->filter_value);
480 public function wakeUp($field_name, $field_value)
482 if ($field_name ==
'filter_value') {
484 $json = json_decode($field_value,
true);
485 if (is_array($json)) {
486 foreach ($json as $key => $value) {
487 $return[
'filter_' . $this->
getField() .
'_' . $key] = $value;
490 $return = array(
'filter_' . $this->
getField() => $field_value);
513 return $this->
getId();
522 if (is_numeric($this->field)) {
528 $stdfield->setId($this->field);
530 $stdfield->setTitle(
$lng->txt(
'dcl_' . $this->field));
545 if ($setting = self::where(array(
'field' => $field_id,
'tableview_id' =>
$tableview_id))->
first()) {
548 $setting =
new self();
549 $setting->setField($field_id);
setDefaultValue($default_value)
setFilterValue($filter_value)
wakeUp($field_name, $field_value)
static getFieldCache($field_id=0)
setTableviewId($tableview_id)
isLocked(bool $creation_mode)
isRequired(bool $creation_mode)
cloneStructure(ilDclTableViewFieldSetting $orig)
setNotVisibleEdit(bool $not_visible)
static _getDatatypeForId($id)
gives you the datatype id of a specified standard field.
Class ilDclTableViewFieldSetting.
static getInstance($tableview_id, $field_id)
setVisibleCreate($visible_create)
Class ilDclBaseFieldModel.
isVisibleInForm(bool $creation_mode)
setLockedCreate($locked_create)
setVisibleEdit($visible_edit)
setFilterChangeable($filter_changeable)
setRequiredCreate($required_create)
setRequiredEdit($required_edit)
setLockedEdit($locked_edit)
static returnDbTableName()
setNotVisibleCreate(bool $not_visible_create)