ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDclTableView Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDclTableView:
+ Collaboration diagram for ilDclTableView:

Public Member Functions

 getId ()
 
 setId (int $id)
 
 getTableId ()
 
 setTableId (int $table_id)
 
 getTitle ()
 
 setTitle (string $title)
 
 getOrder ()
 
 setOrder (int $order)
 
 getDescription ()
 
 setDescription (string $description)
 
 getTableviewOrder ()
 
 setTableviewOrder (int $tableview_order)
 
 isStepVs ()
 
 setStepVs (bool $step_vs)
 
 isStepC ()
 
 setStepC (bool $step_c)
 
 isStepE ()
 
 setStepE (bool $step_e)
 
 isStepO ()
 
 setStepO (bool $step_o)
 
 isStepS ()
 
 setStepS (bool $step_s)
 
 getRoles ()
 
 setRoles (array $roles)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 delete ()
 
 getTable ()
 
 getFilterableFieldSettings ()
 getFilterableFields Returns all fieldsetting-objects of this tableview which have set their filterable to true, including standard fields. More...
 
 getVisibleFields ()
 Returns all field-objects of this tableview which have set their visibility to true, including standard fields. More...
 
 getFieldSettings ()
 
 getFieldSetting ($field_id)
 
 create (bool $create_default_settings=true)
 
 createDefaultSettings ()
 create default ilDclTableViewFieldSetting entries More...
 
 createFieldSetting ($field_id)
 create ilDclTableViewFieldSetting for this tableview and the given field id More...
 
 cloneStructure (ilDclTableView $orig, array $new_fields)
 
 validateConfigCompletion ()
 Check if the configuration of the view is complete. More...
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy (int $new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 
static findOrGetInstance ($primary_key, array $add_constructor_args=array())
 
static getAllForTableId (int $table_id)
 
static getCountForTableId (int $table_id)
 
static createOrGetStandardView (int $table_id, bool $create_default_settings=true)
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField (string $old_name, string $new_name)
 
static tableExists ()
 
static fieldExists (string $field_name)
 
static removeDBField (string $field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 never use in ILIAS Core, Plugins only More...
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
static findOrFail ($primary_key, array $add_constructor_args=array())
 Tries to find the object and throws an Exception if object is not found, instead of returning null. More...
 
static findOrGetInstance ($primary_key, array $add_constructor_args=array())
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $ar, $on_this, $on_external, array $fields=array(' *'), string $operator='=', $both_external=false)
 
static innerjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static leftjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static orderBy ($orderBy, string $orderDirection='ASC')
 
static dateFormat (string $date_format='d.m.Y - H:i:s')
 
static limit ($start, $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $connector)
 
static raw (bool $set_raw=true)
 
static getArray (?string $key=null, $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 

Protected Attributes

int $id
 
int $table_id = 0
 
string $title = ""
 
array $roles = array()
 
string $description = ''
 
int $tableview_order = 0
 
bool $step_vs = false
 
bool $step_c = false
 
bool $step_e = false
 
bool $step_o = false
 
bool $step_s = false
 
array $visible_fields_cache = []
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file class.ilDclTableView.php.

Member Function Documentation

◆ cloneStructure()

ilDclTableView::cloneStructure ( ilDclTableView  $orig,
array  $new_fields 
)
Parameters
ilDclTableView$orig
array$new_fieldsfields mapping

Definition at line 428 of file class.ilDclTableView.php.

References $DIC, Vendor\Package\$f, ilPageObject\copy(), ActiveRecord\create(), ilDclDetailedViewDefinition\exists(), getDescription(), getFieldSettings(), getId(), getOrder(), getRoles(), getTitle(), isStepC(), isStepE(), isStepO(), isStepS(), isStepVs(), ilDclCache\setCloneOf(), setDescription(), setOrder(), setRoles(), setStepC(), setStepE(), setStepO(), setStepS(), setStepVs(), setTitle(), and ilDclCache\TYPE_TABLEVIEW.

428  : void
429  {
430  global $DIC;
431  //clone structure
432  $this->setTitle($orig->getTitle() . ' ' . $DIC->language()->txt('copy_of_suffix'));
433  $this->setOrder($orig->getOrder());
434  $this->setDescription($orig->getDescription());
435  $this->setRoles($orig->getRoles());
436  $this->setStepVs($orig->isStepVs());
437  $this->setStepC($orig->isStepC());
438  $this->setStepE($orig->isStepE());
439  $this->setStepO($orig->isStepO());
440  $this->setStepS($orig->isStepS());
441  $this->create(false); //create default setting, adjust them later
442 
443  //clone default values
445 
446  //clone fieldsettings
447  foreach ($orig->getFieldSettings() as $orig_fieldsetting) {
448  $new_fieldsetting = new ilDclTableViewFieldSetting();
449  $new_fieldsetting->setTableviewId($this->getId());
450  if ($new_fields[$orig_fieldsetting->getField()] ?? null) {
451  //normal fields
452  $new_fieldsetting->setField($new_fields[$orig_fieldsetting->getField()]->getId());
453  } else {
454  //standard fields
455  $new_fieldsetting->setField($orig_fieldsetting->getField());
456  }
457  $new_field_id = $new_fieldsetting->cloneStructure($orig_fieldsetting);
458 
459  //clone default value
460  $datatype = $orig_fieldsetting->getFieldObject()->getDatatypeId();
461  $match = ilDclTableViewBaseDefaultValue::findSingle($datatype, $orig_fieldsetting->getId());
462 
463  if (!is_null($match)) {
464  $new_default_value = $f->create($datatype);
465  $new_default_value->setTviewSetId($new_field_id);
466  $new_default_value->setValue($match->getValue());
467  $new_default_value->create();
468  }
469  }
470 
471  //clone pageobject
473  $orig_pageobject = new ilDclDetailedViewDefinition($orig->getId());
474  $orig_pageobject->copy($this->getId());
475  }
476 
477  // mandatory for all cloning functions
479  }
setStepE(bool $step_e)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $title)
setStepO(bool $step_o)
const TYPE_TABLEVIEW
setStepS(bool $step_s)
copy(int $a_id, string $a_parent_type="", int $a_new_parent_id=0, bool $a_clone_mobs=false, int $obj_copy_id=0)
Copy page.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
setDescription(string $description)
setStepVs(bool $step_vs)
setStepC(bool $step_c)
static setCloneOf(int $old, int $new, string $type)
setRoles(array $roles)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ create()

ilDclTableView::create ( bool  $create_default_settings = true)

Definition at line 370 of file class.ilDclTableView.php.

References createDefaultSettings().

370  : void
371  {
372  parent::create();
373  if ($create_default_settings) {
374  $this->createDefaultSettings();
375  }
376  }
createDefaultSettings()
create default ilDclTableViewFieldSetting entries
+ Here is the call graph for this function:

◆ createDefaultSettings()

ilDclTableView::createDefaultSettings ( )

create default ilDclTableViewFieldSetting entries

Definition at line 381 of file class.ilDclTableView.php.

References createFieldSetting(), and ilDclCache\getTableCache().

Referenced by create().

381  : void
382  {
383  $table = ilDclCache::getTableCache($this->table_id);
384 
385  foreach ($table->getFieldIds() as $field_id) {
386  $this->createFieldSetting($field_id);
387  }
388 
389  //ilDclTable->getFieldIds won't reuturn comments if they are disabled,
390  //still we have to create a fieldsetting for this field
391  if (!$table->getPublicCommentsEnabled()) {
392  $this->createFieldSetting('comments');
393  }
394  }
createFieldSetting($field_id)
create ilDclTableViewFieldSetting for this tableview and the given field id
static getTableCache(int $table_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createFieldSetting()

ilDclTableView::createFieldSetting (   $field_id)

create ilDclTableViewFieldSetting for this tableview and the given field id

Parameters
int | string$field_id

Definition at line 400 of file class.ilDclTableView.php.

References ilDclStandardField\_isStandardField(), and ActiveRecord\where().

Referenced by createDefaultSettings().

400  : void
401  {
403  array(
404  'tableview_id' => $this->id,
405  'field' => $field_id,
406  )
407  )->get()
408  ) {
409  $field_set = new ilDclTableViewFieldSetting();
410  $field_set->setTableviewId($this->id);
411  $field_set->setField($field_id);
412  $field_set->setVisible(!ilDclStandardField::_isStandardField($field_id));
413  $field_set->setFilterChangeable(true);
414  $field_set->setLockedCreate(false);
415  $field_set->setLockedEdit(false);
416  $field_set->setRequiredCreate(false);
417  $field_set->setRequiredEdit(false);
418  $field_set->setVisibleCreate(true);
419  $field_set->setVisibleEdit(true);
420  $field_set->create();
421  }
422  }
static where($where, $operator=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _isStandardField($field_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createOrGetStandardView()

static ilDclTableView::createOrGetStandardView ( int  $table_id,
bool  $create_default_settings = true 
)
static
Parameters
$table_id
bool$create_default_settings
Returns
ilDclTableView|ActiveRecord

Definition at line 499 of file class.ilDclTableView.php.

References $DIC, $http, $lng, $ref_id, ILIAS\Repository\$refinery, ActiveRecord\first(), and ActiveRecord\orderBy().

Referenced by ilDclTable\doCreate(), and ilDataCollectionDataSet\getXmlNamespace().

499  : ActiveRecord
500  {
501  if ($standardview = self::where(array('table_id' => $table_id))->orderBy('tableview_order')->first()) {
502  return $standardview;
503  }
504 
505  global $DIC;
506  $rbacreview = $DIC['rbacreview'];
507  $http = $DIC->http();
508  $refinery = $DIC->refinery();
509 
510  $roles = array();
511 
512  $ref_id = $http->wrapper()->query()->retrieve('ref_id', $refinery->kindlyTo()->int());
513  foreach ($rbacreview->getParentRoleIds($ref_id) as $role_array) {
514  $roles[] = $role_array['obj_id'];
515  }
516 
517  $view = new self();
518 
519  $hasRefId = $http->wrapper()->query()->has('ref_id');
520 
521  if ($hasRefId) {
522  global $DIC;
523  $rbacreview = $DIC['rbacreview'];
524 
525  $ref_id = $http->wrapper()->query()->retrieve('ref_id', $refinery->kindlyTo()->int());
526 
527  $roles = array();
528  foreach ($rbacreview->getParentRoleIds($ref_id) as $role_array) {
529  $roles[] = $role_array['obj_id'];
530  }
531  $view->setRoles(array_merge($roles, $rbacreview->getLocalRoles($ref_id)));
532  }
533  $view->setTableId($table_id);
534  // bugfix mantis 0023307
535  $lng = $DIC['lng'];
536  $view->setTitle($lng->txt('dcl_title_standardview'));
537  $view->setTableviewOrder(10);
538  $view->setStepVs(true);
539  $view->setStepC(false);
540  $view->setStepE(false);
541  $view->setStepO(false);
542  $view->setStepS(false);
543  $view->create($create_default_settings);
544 
545  return $view;
546  }
static orderBy($orderBy, string $orderDirection='ASC')
$lng
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
$http
Definition: raiseError.php:7
Refinery Factory $refinery
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilDclTableView::delete ( )

Definition at line 263 of file class.ilDclTableView.php.

References getFieldSettings().

263  : void
264  {
265  //Delete settings
266  foreach ($this->getFieldSettings() as $setting) {
267  $setting->delete();
268  }
269  parent::delete();
270  }
+ Here is the call graph for this function:

◆ findOrGetInstance()

static ilDclTableView::findOrGetInstance (   $primary_key,
array  $add_constructor_args = array() 
)
static
Returns
ActiveRecord|ilDclTableView

Definition at line 280 of file class.ilDclTableView.php.

Referenced by ilDclEditViewDefinitionGUI\__construct(), ilDclCreateViewDefinitionGUI\__construct(), ilDclRecordEditGUI\__construct(), and ilDclTableViewGUI\executeCommand().

280  : ActiveRecord
281  {
282  return parent::findOrGetInstance($primary_key, $add_constructor_args);
283  }
+ Here is the caller graph for this function:

◆ getAllForTableId()

static ilDclTableView::getAllForTableId ( int  $table_id)
static
Returns
ilDclTableView[]|ActiveRecord[]

Definition at line 484 of file class.ilDclTableView.php.

Referenced by ilDclBaseFieldModel\addToTableViews(), and ilDclTable\getTableViews().

484  : array
485  {
486  return self::where(array('table_id' => $table_id))->orderBy('tableview_order')->get();
487  }
+ Here is the caller graph for this function:

◆ getCountForTableId()

static ilDclTableView::getCountForTableId ( int  $table_id)
static

Definition at line 489 of file class.ilDclTableView.php.

Referenced by ilDclTable\getNewTableviewOrder().

489  : int
490  {
491  return self::where(array('table_id' => $table_id))->orderBy('tableview_order')->count();
492  }
+ Here is the caller graph for this function:

◆ getDescription()

ilDclTableView::getDescription ( )

Definition at line 158 of file class.ilDclTableView.php.

References $description.

Referenced by cloneStructure(), and ilDclTableViewTableGUI\fillRowFromObject().

158  : string
159  {
160  return $this->description;
161  }
+ Here is the caller graph for this function:

◆ getFieldSetting()

ilDclTableView::getFieldSetting (   $field_id)
Parameters
$field_id
Returns
ilDclTableViewFieldSetting|ActiveRecord

Definition at line 362 of file class.ilDclTableView.php.

References getId(), and ActiveRecord\where().

362  : ActiveRecord
363  {
365  'tableview_id' => $this->getId(),
366  'field' => $field_id
367  ])->first();
368  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ getFieldSettings()

ilDclTableView::getFieldSettings ( )
Returns
ilDclTableViewFieldSetting[]
Exceptions
arException

Definition at line 336 of file class.ilDclTableView.php.

References ILIAS\LTI\ToolProvider\$settings, ilDclDatatype\getAllDatatype(), getId(), getTableId(), and ActiveRecord\where().

Referenced by cloneStructure(), and delete().

336  : array
337  {
339  [
340  'tableview_id' => $this->getId(),
341  'il_dcl_tfield_set.table_id' => $this->getTableId(),
342  ]
343  )
344  ->innerjoin('il_dcl_tfield_set', 'field', 'field', ['field_order'])->orderBy('field_order')
345  ->get();
346 
347  $result = [];
348  foreach ($settings as $setting) {
349  $datatype = $setting->getFieldObject()->getDatatypeId();
350  if ($datatype === null || in_array($datatype, array_keys(ilDclDatatype::getAllDatatype()))) {
351  $result[] = $setting;
352  }
353  }
354 
355  return $result;
356  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
static where($where, $operator=null)
static getAllDatatype(bool $force=false)
Get all possible Datatypes.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFilterableFieldSettings()

ilDclTableView::getFilterableFieldSettings ( )

getFilterableFields Returns all fieldsetting-objects of this tableview which have set their filterable to true, including standard fields.

Returns
ilDclBaseFieldModel[]|ilDclTableViewFieldSetting[]

Definition at line 290 of file class.ilDclTableView.php.

References getTableId(), and ActiveRecord\where().

290  : array
291  {
293  array(
294  "tableview_id" => $this->id,
295  'in_filter' => 1,
296  'il_dcl_tfield_set.table_id' => $this->getTableId(),
297  )
298  )->innerjoin('il_dcl_tfield_set', 'field', 'field', array())
299  ->orderBy('il_dcl_tfield_set.field_order')
300  ->get();
301  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ getId()

ilDclTableView::getId ( )

Definition at line 118 of file class.ilDclTableView.php.

References $id.

Referenced by cloneStructure(), ilDclTableViewTableGUI\fillRowFromObject(), getFieldSetting(), and getFieldSettings().

118  : ?int
119  {
120  return $this->id;
121  }
+ Here is the caller graph for this function:

◆ getOrder()

ilDclTableView::getOrder ( )

Definition at line 148 of file class.ilDclTableView.php.

References $tableview_order.

Referenced by cloneStructure(), and ilDclTableViewTableGUI\fillRowFromObject().

148  : int
149  {
150  return $this->tableview_order;
151  }
+ Here is the caller graph for this function:

◆ getRoles()

ilDclTableView::getRoles ( )

Definition at line 228 of file class.ilDclTableView.php.

References $roles.

Referenced by cloneStructure().

228  : array
229  {
230  return $this->roles;
231  }
+ Here is the caller graph for this function:

◆ getTable()

ilDclTableView::getTable ( )

Definition at line 272 of file class.ilDclTableView.php.

References ilDclCache\getTableCache().

272  : ilDclTable
273  {
274  return ilDclCache::getTableCache($this->table_id);
275  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getTableCache(int $table_id=null)
+ Here is the call graph for this function:

◆ getTableId()

ilDclTableView::getTableId ( )

Definition at line 128 of file class.ilDclTableView.php.

References $table_id.

Referenced by getFieldSettings(), getFilterableFieldSettings(), and getVisibleFields().

128  : int
129  {
130  return $this->table_id;
131  }
+ Here is the caller graph for this function:

◆ getTableviewOrder()

ilDclTableView::getTableviewOrder ( )

Definition at line 168 of file class.ilDclTableView.php.

References $tableview_order.

168  : int
169  {
170  return $this->tableview_order;
171  }

◆ getTitle()

ilDclTableView::getTitle ( )

Definition at line 138 of file class.ilDclTableView.php.

References $title.

Referenced by cloneStructure(), and ilDclTableViewTableGUI\fillRowFromObject().

138  : string
139  {
140  return $this->title;
141  }
+ Here is the caller graph for this function:

◆ getVisibleFields()

ilDclTableView::getVisibleFields ( )

Returns all field-objects of this tableview which have set their visibility to true, including standard fields.

Returns
ilDclBaseFieldModel[]|ilDclTableViewFieldSetting[]

Definition at line 307 of file class.ilDclTableView.php.

References $visible_fields_cache, getTableId(), and ActiveRecord\where().

307  : array
308  {
309  if (!$this->visible_fields_cache) {
311  array(
312  "tableview_id" => $this->id,
313  'visible' => true,
314  'il_dcl_tfield_set.table_id' => $this->getTableId(),
315  )
316  )->innerjoin(
317  'il_dcl_tfield_set',
318  'field',
319  'field',
320  array()
321  )->orderBy('il_dcl_tfield_set.field_order')->get();
322  $fields = array();
323  foreach ($visible as $field_rec) {
324  $fields[] = $field_rec->getFieldObject();
325  }
326  $this->visible_fields_cache = $fields;
327  }
328 
330  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ isStepC()

ilDclTableView::isStepC ( )

Definition at line 188 of file class.ilDclTableView.php.

References $step_c.

Referenced by cloneStructure().

188  : bool
189  {
190  return $this->step_c;
191  }
+ Here is the caller graph for this function:

◆ isStepE()

ilDclTableView::isStepE ( )

Definition at line 198 of file class.ilDclTableView.php.

References $step_e.

Referenced by cloneStructure().

198  : bool
199  {
200  return $this->step_e;
201  }
+ Here is the caller graph for this function:

◆ isStepO()

ilDclTableView::isStepO ( )

Definition at line 208 of file class.ilDclTableView.php.

References $step_o.

Referenced by cloneStructure().

208  : bool
209  {
210  return $this->step_o;
211  }
+ Here is the caller graph for this function:

◆ isStepS()

ilDclTableView::isStepS ( )

Definition at line 218 of file class.ilDclTableView.php.

References $step_s.

Referenced by cloneStructure().

218  : bool
219  {
220  return $this->step_s;
221  }
+ Here is the caller graph for this function:

◆ isStepVs()

ilDclTableView::isStepVs ( )

Definition at line 178 of file class.ilDclTableView.php.

References $step_vs.

Referenced by cloneStructure().

178  : bool
179  {
180  return $this->step_vs;
181  }
+ Here is the caller graph for this function:

◆ returnDbTableName()

static ilDclTableView::returnDbTableName ( )
static
Returns
string Return the Name of your Database Table

Definition at line 113 of file class.ilDclTableView.php.

113  : string
114  {
115  return "il_dcl_tableview";
116  }

◆ setDescription()

ilDclTableView::setDescription ( string  $description)

Definition at line 163 of file class.ilDclTableView.php.

References $description.

Referenced by cloneStructure().

163  : void
164  {
165  $this->description = $description;
166  }
+ Here is the caller graph for this function:

◆ setId()

ilDclTableView::setId ( int  $id)

Definition at line 123 of file class.ilDclTableView.php.

References $id.

123  : void
124  {
125  $this->id = $id;
126  }

◆ setOrder()

ilDclTableView::setOrder ( int  $order)

Definition at line 153 of file class.ilDclTableView.php.

Referenced by cloneStructure().

153  : void
154  {
155  $this->tableview_order = $order;
156  }
+ Here is the caller graph for this function:

◆ setRoles()

ilDclTableView::setRoles ( array  $roles)

Definition at line 233 of file class.ilDclTableView.php.

References $roles.

Referenced by cloneStructure().

233  : void
234  {
235  $this->roles = $roles;
236  }
+ Here is the caller graph for this function:

◆ setStepC()

ilDclTableView::setStepC ( bool  $step_c)

Definition at line 193 of file class.ilDclTableView.php.

References $step_c.

Referenced by cloneStructure().

193  : void
194  {
195  $this->step_c = $step_c;
196  }
+ Here is the caller graph for this function:

◆ setStepE()

ilDclTableView::setStepE ( bool  $step_e)

Definition at line 203 of file class.ilDclTableView.php.

References $step_e.

Referenced by cloneStructure().

203  : void
204  {
205  $this->step_e = $step_e;
206  }
+ Here is the caller graph for this function:

◆ setStepO()

ilDclTableView::setStepO ( bool  $step_o)

Definition at line 213 of file class.ilDclTableView.php.

References $step_o.

Referenced by cloneStructure().

213  : void
214  {
215  $this->step_o = $step_o;
216  }
+ Here is the caller graph for this function:

◆ setStepS()

ilDclTableView::setStepS ( bool  $step_s)

Definition at line 223 of file class.ilDclTableView.php.

References $step_s.

Referenced by cloneStructure().

223  : void
224  {
225  $this->step_s = $step_s;
226  }
+ Here is the caller graph for this function:

◆ setStepVs()

ilDclTableView::setStepVs ( bool  $step_vs)

Definition at line 183 of file class.ilDclTableView.php.

References $step_vs.

Referenced by cloneStructure().

183  : void
184  {
185  $this->step_vs = $step_vs;
186  }
+ Here is the caller graph for this function:

◆ setTableId()

ilDclTableView::setTableId ( int  $table_id)

Definition at line 133 of file class.ilDclTableView.php.

References $table_id.

133  : void
134  {
135  $this->table_id = $table_id;
136  }

◆ setTableviewOrder()

ilDclTableView::setTableviewOrder ( int  $tableview_order)

Definition at line 173 of file class.ilDclTableView.php.

References $tableview_order.

173  : void
174  {
175  $this->tableview_order = $tableview_order;
176  }

◆ setTitle()

ilDclTableView::setTitle ( string  $title)

Definition at line 143 of file class.ilDclTableView.php.

References $title.

Referenced by cloneStructure().

143  : void
144  {
145  $this->title = $title;
146  }
+ Here is the caller graph for this function:

◆ sleep()

ilDclTableView::sleep (   $field_name)
Parameters
string$field_name

Definition at line 241 of file class.ilDclTableView.php.

241  : ?string
242  {
243  if ($field_name == 'roles') {
244  return json_encode($this->roles);
245  }
246 
247  return null;
248  }

◆ validateConfigCompletion()

ilDclTableView::validateConfigCompletion ( )

Check if the configuration of the view is complete.

The step "single" is optional and therefore omitted.

Definition at line 552 of file class.ilDclTableView.php.

References $step_o.

Referenced by ilDclTableViewTableGUI\fillRowFromObject().

552  : bool
553  {
554  return $this->step_vs && $this->step_c && $this->step_e && $this->step_o;
555  }
+ Here is the caller graph for this function:

◆ wakeUp()

ilDclTableView::wakeUp (   $field_name,
  $field_value 
)
Parameters
string$field_name
int | string$field_value

Definition at line 254 of file class.ilDclTableView.php.

254  : ?array
255  {
256  if ($field_name == 'roles') {
257  return json_decode($field_value);
258  }
259 
260  return null;
261  }

Field Documentation

◆ $description

string ilDclTableView::$description = ''
protected

Definition at line 61 of file class.ilDclTableView.php.

Referenced by getDescription(), and setDescription().

◆ $id

int ilDclTableView::$id
protected

Definition at line 31 of file class.ilDclTableView.php.

Referenced by getId(), and setId().

◆ $roles

array ilDclTableView::$roles = array()
protected

Definition at line 54 of file class.ilDclTableView.php.

Referenced by getRoles(), and setRoles().

◆ $step_c

bool ilDclTableView::$step_c = false
protected

Definition at line 82 of file class.ilDclTableView.php.

Referenced by isStepC(), and setStepC().

◆ $step_e

bool ilDclTableView::$step_e = false
protected

Definition at line 89 of file class.ilDclTableView.php.

Referenced by isStepE(), and setStepE().

◆ $step_o

bool ilDclTableView::$step_o = false
protected

Definition at line 96 of file class.ilDclTableView.php.

Referenced by isStepO(), setStepO(), and validateConfigCompletion().

◆ $step_s

bool ilDclTableView::$step_s = false
protected

Definition at line 103 of file class.ilDclTableView.php.

Referenced by isStepS(), and setStepS().

◆ $step_vs

bool ilDclTableView::$step_vs = false
protected

Definition at line 75 of file class.ilDclTableView.php.

Referenced by isStepVs(), and setStepVs().

◆ $table_id

int ilDclTableView::$table_id = 0
protected

Definition at line 39 of file class.ilDclTableView.php.

Referenced by getTableId(), and setTableId().

◆ $tableview_order

int ilDclTableView::$tableview_order = 0
protected

Definition at line 68 of file class.ilDclTableView.php.

Referenced by getOrder(), getTableviewOrder(), and setTableviewOrder().

◆ $title

string ilDclTableView::$title = ""
protected

Definition at line 47 of file class.ilDclTableView.php.

Referenced by getTitle(), and setTitle().

◆ $visible_fields_cache

array ilDclTableView::$visible_fields_cache = []
protected

Definition at line 107 of file class.ilDclTableView.php.

Referenced by getVisibleFields().


The documentation for this class was generated from the following file: