ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDclTableView Class Reference

Class ilDclTableView. More...

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

Public Member Functions

 getId ()
 
 setId ($id)
 
 getTableId ()
 
 setTableId ($table_id)
 
 getTitle ()
 
 setTitle ($title)
 
 getOrder ()
 
 setOrder ($order)
 
 getDescription ()
 
 setDescription ($description)
 
 getTableviewOrder ()
 
 setTableviewOrder ($tableview_order)
 
 isStepVs ()
 
 setStepVs ($step_vs)
 
 isStepC ()
 
 setStepC ($step_c)
 
 isStepE ()
 
 setStepE ($step_e)
 
 isStepO ()
 
 setStepO ($step_o)
 
 isStepS ()
 
 setStepS ($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 ($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 ()
 
 setConnectorContainerName ($connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0, arConnector $connector=null)
 
 storeObjectToCache ()
 
 __getConvertedDateFieldsAsArray ($format=null)
 
 __asCsv ($separator=';', $header=false)
 
 __asArray ()
 
 __asStdClass ()
 
 __asSerializedObject ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForDb ()
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy ($new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 
static getAllForTableId ($table_id)
 
static getCountForTableId ($table_id)
 
static createOrGetStandardView ($table_id, $create_default_settings=true)
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField ($old_name, $new_name)
 
static tableExists ()
 
static fieldExists ($field_name)
 
static removeDBField ($field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 
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, $fields=array(' *'), $operator='=', $both_external=false)
 
static innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static orderBy ($orderBy, $orderDirection='ASC')
 
static dateFormat ($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 ($set_raw=true)
 
static getArray ($key=null, $values=null)
 
static _toCamelCase ($str, $capitalise_first_char=false)
 

Protected Attributes

 $id
 
 $table_id
 
 $title
 
 $roles = array()
 
 $description
 
 $tableview_order
 
 $step_vs
 
 $step_c
 
 $step_e
 
 $step_o
 
 $step_s
 
 $visible_fields_cache
 
- Protected Attributes inherited from ActiveRecord
 $ar_safe_read = true
 
 $connector_container_name = ''
 

Additional Inherited Members

- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 
- Protected Member Functions inherited from ActiveRecord
 serializeToCSV ($field)
 This method is called for every field of your instance if you use __asCsv. More...
 
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 
static fromCamelCase ($str)
 

Detailed Description

Class ilDclTableView.

Author
Theodor Truffer tt@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 9 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 529 of file class.ilDclTableView.php.

References Vendor\Package\$f, ilPageObject\copy(), ActiveRecord\create(), ilDclDetailedViewDefinition\exists(), ilDclTableViewBaseDefaultValue\findSingle(), 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.

530  {
531  //clone structure
532  $this->setTitle($orig->getTitle());
533  $this->setOrder($orig->getOrder());
534  $this->setDescription($orig->getDescription());
535  $this->setRoles($orig->getRoles());
536  $this->setStepVs($orig->isStepVs());
537  $this->setStepC($orig->isStepC());
538  $this->setStepE($orig->isStepE());
539  $this->setStepO($orig->isStepO());
540  $this->setStepS($orig->isStepS());
541  $this->create(false); //create default setting, adjust them later
542 
543  //clone default values
545 
546 
547  //clone fieldsettings
548  foreach ($orig->getFieldSettings() as $orig_fieldsetting) {
549  $new_fieldsetting = new ilDclTableViewFieldSetting();
550  $new_fieldsetting->setTableviewId($this->getId());
551  if ($new_fields[$orig_fieldsetting->getField()]) {
552  //normal fields
553  $new_fieldsetting->setField($new_fields[$orig_fieldsetting->getField()]->getId());
554  } else {
555  //standard fields
556  $new_fieldsetting->setField($orig_fieldsetting->getField());
557  }
558  $new_field_id = $new_fieldsetting->cloneStructure($orig_fieldsetting);
559 
560  //clone default value
561  $datatype = $orig_fieldsetting->getFieldObject()->getDatatypeId();
562  $match = ilDclTableViewBaseDefaultValue::findSingle($datatype, $orig_fieldsetting->getId());
563 
564  if (!is_null($match)) {
565  $new_default_value = $f->create($datatype);
566  $new_default_value->setTviewSetId($new_field_id);
567  $new_default_value->setValue($match->getValue());
568  $new_default_value->create();
569  }
570  }
571 
572  //clone pageobject
574  $orig_pageobject = new ilDclDetailedViewDefinition($orig->getId());
575  $orig_pageobject->copy($this->getId());
576  }
577 
578  // mandatory for all cloning functions
580  }
static setCloneOf($old, $new, $type)
const TYPE_TABLEVIEW
Class ilDclTableViewFieldSetting.
setRoles(array $roles)
setDescription($description)
copy($a_id, $a_parent_type="", $a_parent_id=0, $a_clone_mobs=false)
Copy page.
Class ilDclDetailedViewDefinition.
+ Here is the call graph for this function:

◆ create()

ilDclTableView::create (   $create_default_settings = true)
Parameters
bool$create_default_settings

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

References createDefaultSettings().

468  {
469  parent::create();
470  if ($create_default_settings) {
471  $this->createDefaultSettings();
472  }
473  }
createDefaultSettings()
create default ilDclTableViewFieldSetting entries
+ Here is the call graph for this function:

◆ createDefaultSettings()

ilDclTableView::createDefaultSettings ( )

create default ilDclTableViewFieldSetting entries

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

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

Referenced by create().

480  {
481  $table = ilDclCache::getTableCache($this->table_id);
482 
483  foreach ($table->getFieldIds() as $field_id) {
484  $this->createFieldSetting($field_id);
485  }
486 
487  //ilDclTable->getFieldIds won't reuturn comments if they are disabled,
488  //still we have to create a fieldsetting for this field
489  if (!$table->getPublicCommentsEnabled()) {
490  $this->createFieldSetting('comments');
491  }
492  }
createFieldSetting($field_id)
create ilDclTableViewFieldSetting for this tableview and the given field id
static getTableCache($table_id=0)
+ 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
$field_id

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

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

Referenced by createDefaultSettings().

501  {
503  array(
504  'tableview_id' => $this->id,
505  'field' => $field_id,
506  )
507  )->get()
508  ) {
509  $field_set = new ilDclTableViewFieldSetting();
510  $field_set->setTableviewId($this->id);
511  $field_set->setField($field_id);
512  $field_set->setVisible(!ilDclStandardField::_isStandardField($field_id));
513  $field_set->setFilterChangeable(true);
514  $field_set->setLockedCreate(false);
515  $field_set->setLockedEdit(false);
516  $field_set->setRequiredCreate(false);
517  $field_set->setRequiredEdit(false);
518  $field_set->setVisibleCreate(true);
519  $field_set->setVisibleEdit(true);
520  $field_set->create();
521  }
522  }
static where($where, $operator=null)
Class ilDclTableViewFieldSetting.
static _isStandardField($field_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createOrGetStandardView()

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

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

References $_GET, $DIC, $lng, $roles, $table_id, ActiveRecord\first(), and ActiveRecord\orderBy().

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

612  {
613  if ($standardview = self::where(array('table_id' => $table_id))->orderBy('tableview_order')->first()) {
614  return $standardview;
615  }
616 
617  global $DIC;
618  $rbacreview = $DIC['rbacreview'];
619  $roles = array();
620  foreach ($rbacreview->getParentRoleIds($_GET['ref_id']) as $role_array) {
621  $roles[] = $role_array['obj_id'];
622  }
623 
624  $view = new self();
625 
626  if ($_GET['ref_id']) {
627  global $DIC;
628  $rbacreview = $DIC['rbacreview'];
629  $roles = array();
630  foreach ($rbacreview->getParentRoleIds($_GET['ref_id']) as $role_array) {
631  $roles[] = $role_array['obj_id'];
632  }
633  $view->setRoles(array_merge($roles, $rbacreview->getLocalRoles($_GET['ref_id'])));
634  }
635  $view->setTableId($table_id);
636  // bugfix mantis 0023307
637  $lng = $DIC['lng'];
638  $view->setTitle($lng->txt('dcl_title_standardview'));
639  $view->setTableviewOrder(10);
640  $view->setStepVs(true);
641  $view->setStepC(false);
642  $view->setStepE(false);
643  $view->setStepO(false);
644  $view->setStepS(false);
645  $view->create($create_default_settings);
646 
647  return $view;
648  }
$_GET["client_id"]
$lng
global $DIC
Definition: goto.php:24
static orderBy($orderBy, $orderDirection='ASC')
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilDclTableView::delete ( )

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

References getFieldSettings().

374  {
375  //Delete settings
376  foreach ($this->getFieldSettings() as $setting) {
377  $setting->delete();
378  }
379  parent::delete();
380  }
+ Here is the call graph for this function:

◆ getAllForTableId()

static ilDclTableView::getAllForTableId (   $table_id)
static
Parameters
$table_id
Returns
ilDclTableView[]

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

References $table_id.

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

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

◆ getCountForTableId()

static ilDclTableView::getCountForTableId (   $table_id)
static
Parameters
$table_id
Returns
int

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

References $table_id.

Referenced by ilDclTable\getNewTableviewOrder().

600  {
601  return self::where(array('table_id' => $table_id))->orderBy('tableview_order')->count();
602  }
+ Here is the caller graph for this function:

◆ getDescription()

ilDclTableView::getDescription ( )
Returns
string

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

References $description.

Referenced by cloneStructure().

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

◆ getFieldSetting()

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

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

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

457  {
459  'tableview_id' => $this->getId(),
460  'field' => $field_id
461  ])->first();
462  }
static where($where, $operator=null)
Class ilDclTableViewFieldSetting.
+ Here is the call graph for this function:

◆ getFieldSettings()

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

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

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

Referenced by cloneStructure(), and delete().

442  : array
443  {
445  array(
446  'tableview_id' => $this->getId(),
447  'il_dcl_tfield_set.table_id' => $this->getTableId(),
448  )
449  )->innerjoin('il_dcl_tfield_set', 'field', 'field', array('field_order'))->orderBy('field_order')->get();
450  }
static where($where, $operator=null)
+ 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 398 of file class.ilDclTableView.php.

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

399  {
401  array(
402  "tableview_id" => $this->id,
403  'in_filter' => 1,
404  'il_dcl_tfield_set.table_id' => $this->getTableId(),
405  )
406  )->innerjoin('il_dcl_tfield_set', 'field', 'field', array())
407  ->orderBy('il_dcl_tfield_set.field_order')
408  ->get();
409  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ getId()

ilDclTableView::getId ( )
Returns
int

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

References $id.

Referenced by cloneStructure(), getFieldSetting(), and getFieldSettings().

127  {
128  return $this->id;
129  }
+ Here is the caller graph for this function:

◆ getOrder()

ilDclTableView::getOrder ( )
Returns
int

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

References $tableview_order.

Referenced by cloneStructure().

181  {
182  return $this->tableview_order;
183  }
+ Here is the caller graph for this function:

◆ getRoles()

ilDclTableView::getRoles ( )
Returns
array

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

References $roles.

Referenced by cloneStructure().

325  {
326  return (array) $this->roles;
327  }
+ Here is the caller graph for this function:

◆ getTable()

ilDclTableView::getTable ( )
Returns
ilDclTable

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

References ilDclCache\getTableCache().

387  {
388  return ilDclCache::getTableCache($this->table_id);
389  }
static getTableCache($table_id=0)
+ Here is the call graph for this function:

◆ getTableId()

ilDclTableView::getTableId ( )
Returns
int

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

References $table_id.

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

145  {
146  return $this->table_id;
147  }
+ Here is the caller graph for this function:

◆ getTableviewOrder()

ilDclTableView::getTableviewOrder ( )
Returns
int

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

References $tableview_order.

217  {
218  return $this->tableview_order;
219  }

◆ getTitle()

ilDclTableView::getTitle ( )
Returns
string

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

References $title.

Referenced by cloneStructure().

163  {
164  return $this->title;
165  }
+ 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 417 of file class.ilDclTableView.php.

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

418  {
419  if (!$this->visible_fields_cache) {
421  where(
422  array(
423  "tableview_id" => $this->id,
424  'visible' => true,
425  'il_dcl_tfield_set.table_id' => $this->getTableId(),
426  )
427  )->innerjoin('il_dcl_tfield_set', 'field', 'field', array())->orderBy('il_dcl_tfield_set.field_order')->get();
428  $fields = array();
429  foreach ($visible as $field_rec) {
430  $fields[] = $field_rec->getFieldObject();
431  }
432  $this->visible_fields_cache = $fields;
433  }
434 
436  }
static where($where, $operator=null)
+ Here is the call graph for this function:

◆ isStepC()

ilDclTableView::isStepC ( )
Returns
bool

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

References $step_c.

Referenced by cloneStructure().

253  {
254  return $this->step_c;
255  }
+ Here is the caller graph for this function:

◆ isStepE()

ilDclTableView::isStepE ( )
Returns
bool

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

References $step_e.

Referenced by cloneStructure().

271  {
272  return $this->step_e;
273  }
+ Here is the caller graph for this function:

◆ isStepO()

ilDclTableView::isStepO ( )
Returns
bool

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

References $step_o.

Referenced by cloneStructure().

289  {
290  return $this->step_o;
291  }
+ Here is the caller graph for this function:

◆ isStepS()

ilDclTableView::isStepS ( )
Returns
bool

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

References $step_s.

Referenced by cloneStructure().

307  {
308  return $this->step_s;
309  }
+ Here is the caller graph for this function:

◆ isStepVs()

ilDclTableView::isStepVs ( )
Returns
bool

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

References $step_vs.

Referenced by cloneStructure().

235  {
236  return $this->step_vs;
237  }
+ 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 117 of file class.ilDclTableView.php.

118  {
119  return "il_dcl_tableview";
120  }

◆ setDescription()

ilDclTableView::setDescription (   $description)
Parameters
string$description

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

References $description.

Referenced by cloneStructure().

208  {
209  $this->description = $description;
210  }
+ Here is the caller graph for this function:

◆ setId()

ilDclTableView::setId (   $id)
Parameters
int$id

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

References $id.

136  {
137  $this->id = $id;
138  }

◆ setOrder()

ilDclTableView::setOrder (   $order)
Parameters
int$order

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

Referenced by cloneStructure().

190  {
191  $this->tableview_order = $order;
192  }
+ Here is the caller graph for this function:

◆ setRoles()

ilDclTableView::setRoles ( array  $roles)
Parameters
array$roles

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

References $roles.

Referenced by cloneStructure().

334  {
335  $this->roles = $roles;
336  }
+ Here is the caller graph for this function:

◆ setStepC()

ilDclTableView::setStepC (   $step_c)
Parameters
bool$step_c

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

References $step_c.

Referenced by cloneStructure().

262  {
263  $this->step_c = $step_c;
264  }
+ Here is the caller graph for this function:

◆ setStepE()

ilDclTableView::setStepE (   $step_e)
Parameters
bool$step_e

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

References $step_e.

Referenced by cloneStructure().

280  {
281  $this->step_e = $step_e;
282  }
+ Here is the caller graph for this function:

◆ setStepO()

ilDclTableView::setStepO (   $step_o)
Parameters
bool$step_o

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

References $step_o.

Referenced by cloneStructure().

298  {
299  $this->step_o = $step_o;
300  }
+ Here is the caller graph for this function:

◆ setStepS()

ilDclTableView::setStepS (   $step_s)
Parameters
bool$step_s

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

References $step_s.

Referenced by cloneStructure().

316  {
317  $this->step_s = $step_s;
318  }
+ Here is the caller graph for this function:

◆ setStepVs()

ilDclTableView::setStepVs (   $step_vs)
Parameters
bool$step_vs

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

References $step_vs.

Referenced by cloneStructure().

244  {
245  $this->step_vs = $step_vs;
246  }
+ Here is the caller graph for this function:

◆ setTableId()

ilDclTableView::setTableId (   $table_id)
Parameters
int$table_id

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

References $table_id.

154  {
155  $this->table_id = $table_id;
156  }

◆ setTableviewOrder()

ilDclTableView::setTableviewOrder (   $tableview_order)
Parameters
int$tableview_order

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

References $tableview_order.

226  {
227  $this->tableview_order = $tableview_order;
228  }

◆ setTitle()

ilDclTableView::setTitle (   $title)
Parameters
string$title

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

References $title.

Referenced by cloneStructure().

172  {
173  $this->title = $title;
174  }
+ Here is the caller graph for this function:

◆ sleep()

ilDclTableView::sleep (   $field_name)
Parameters
$field_name
Returns
null|string

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

345  {
346  if ($field_name == 'roles') {
347  return json_encode($this->roles);
348  }
349 
350  return null;
351  }

◆ validateConfigCompletion()

ilDclTableView::validateConfigCompletion ( )

Check if the configuration of the view is complete.

The step "single" is optional and therefore omitted.

Returns
bool

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

References $step_o.

658  {
659  return $this->step_vs && $this->step_c && $this->step_e && $this->step_o;
660  }

◆ wakeUp()

ilDclTableView::wakeUp (   $field_name,
  $field_value 
)
Parameters
$field_name
$field_value
Returns
mixed|null

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

361  {
362  if ($field_name == 'roles') {
363  return json_decode($field_value);
364  }
365 
366  return null;
367  }

Field Documentation

◆ $description

ilDclTableView::$description
protected

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

Referenced by getDescription(), and setDescription().

◆ $id

ilDclTableView::$id
protected

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

Referenced by getId(), and setId().

◆ $roles

ilDclTableView::$roles = array()
protected

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

Referenced by createOrGetStandardView(), getRoles(), and setRoles().

◆ $step_c

ilDclTableView::$step_c
protected

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

Referenced by isStepC(), and setStepC().

◆ $step_e

ilDclTableView::$step_e
protected

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

Referenced by isStepE(), and setStepE().

◆ $step_o

ilDclTableView::$step_o
protected

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

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

◆ $step_s

ilDclTableView::$step_s
protected

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

Referenced by isStepS(), and setStepS().

◆ $step_vs

ilDclTableView::$step_vs
protected

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

Referenced by isStepVs(), and setStepVs().

◆ $table_id

ilDclTableView::$table_id
protected

◆ $tableview_order

ilDclTableView::$tableview_order
protected

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

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

◆ $title

ilDclTableView::$title
protected

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

Referenced by getTitle(), and setTitle().

◆ $visible_fields_cache

ilDclTableView::$visible_fields_cache
protected

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

Referenced by getVisibleFields().


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