ILIAS  release_8 Revision v8.24
class.ilDclDetailedViewDefinition.php
Go to the documentation of this file.
1<?php
2
20{
21 public const PARENT_TYPE = 'dclf';
22 protected int $table_id;
23
27 public function getParentType(): string
28 {
29 return self::PARENT_TYPE;
30 }
31
35 public function getAvailablePlaceholders(): array
36 {
37 $all = array();
38
39 $tableview = new ilDclTableView($this->getId());
40 $table_id = $tableview->getTableId();
42 $fields = $objTable->getRecordFields();
43 $standardFields = $objTable->getStandardFields();
44
45 foreach ($fields as $field) {
46 $all[] = "[" . $field->getTitle() . "]";
47
48 if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_REFERENCE) {
49 $all[] = '[dclrefln field="' . $field->getTitle() . '"][/dclrefln]';
50 }
51 }
52
53 foreach ($standardFields as $field) {
54 $all[] = "[" . $field->getId() . "]";
55 }
56
57 return $all;
58 }
59
60 public static function exists(int $id): bool
61 {
62 return parent::_exists(self::PARENT_TYPE, $id);
63 }
64
65 public static function isActive(int $id): bool
66 {
67 if (!parent::_exists(self::PARENT_TYPE, $id)) {
68 return false;
69 }
70 return parent::_lookupActive($id, self::PARENT_TYPE);
71 }
72}
static getTableCache(int $table_id=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAvailablePlaceholders()
Get all placeholders for table id.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)