19 declare(strict_types=1);
136 return "il_dcl_tview_set";
207 public function setId(
int $id): void
274 $this->visible_create = !$not_visible_create;
294 $this->visible_edit = !$not_visible;
307 public function isLocked(
bool $creation_mode): bool
317 public function sleep($field_name): ?string
319 if ($field_name ==
'filter_value' && is_array($this->filter_value)) {
320 return json_encode($this->filter_value);
326 public function wakeUp($field_name, $field_value): ?array
328 if ($field_name ==
'filter_value') {
332 $json = json_decode($field_value,
true);
334 if (is_array($json)) {
335 foreach ($json as $key => $value) {
336 $return[
'filter_' . $this->
getField() .
'_' . $key] = $value;
339 $return = [
'filter_' . $this->
getField() => $field_value];
361 return $this->
getId();
369 if (is_numeric($this->field)) {
375 $stdfield->setId($this->field);
377 $stdfield->setTitle(
$lng->txt(
'dcl_' . $this->field));
388 return parent::where([
'field' => $id,
389 'tableview_id' => $tableview_id
400 if (!($setting = self::where([
'field' => $field_id,
'tableview_id' => $tableview_id])->
first())) {
401 $setting =
new self();
402 $setting->setField((
string) $field_id);
403 $setting->setTableviewId($tableview_id);
setFilterValue($filter_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
wakeUp($field_name, $field_value)
setFilterChangeable(bool $filter_changeable)
isLocked(bool $creation_mode)
setVisibleEdit(bool $visible_edit)
static getFieldCache(int $field_id=0)
setVisible(bool $visible)
isRequired(bool $creation_mode)
setLockedCreate(bool $locked_create)
cloneStructure(ilDclTableViewFieldSetting $orig)
static _getDatatypeForId(string $id)
gives you the datatype id of a specified standard field.
setVisibleCreate(bool $visible_create)
setNotVisibleEdit(bool $not_visible)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getInstance(int $tableview_id, int $field_id)
setDefaultValue(?string $default_value)
static getTableViewFieldSetting(string $id, int $tableview_id)
setInFilter(bool $in_filter)
isVisibleInForm(bool $creation_mode)
setRequiredEdit(bool $required_edit)
setLockedEdit(bool $locked_edit)
setRequiredCreate(bool $required_create)
setTableviewId(int $tableview_id)
static returnDbTableName()
setNotVisibleCreate(bool $not_visible_create)