ILIAS  release_8 Revision v8.24
class.ilDclCreateViewDefinition.php
Go to the documentation of this file.
1<?php
2
20{
21 public const PARENT_TYPE = 'dclf';
22 protected bool $active = false;
23 protected int $table_id;
24
28 public function getParentType(): string
29 {
30 return self::PARENT_TYPE;
31 }
32
37 public function getAvailablePlaceholders(): array
38 {
39 $all = array();
40
41 $tableview = new ilDclTableView($this->getId());
42 $table_id = $tableview->getTableId();
44 $fields = $objTable->getRecordFields();
45 $standardFields = $objTable->getStandardFields();
46
47 foreach ($fields as $field) {
48 $all[] = "[" . $field->getTitle() . "]";
49
50 if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_REFERENCE) {
51 $all[] = '[dclrefln field="' . $field->getTitle() . '"][/dclrefln]';
52 }
53 }
54
55 foreach ($standardFields as $field) {
56 $all[] = "[" . $field->getId() . "]";
57 }
58
59 return $all;
60 }
61
62 public static function exists(int $id): bool
63 {
64 return parent::_exists(self::PARENT_TYPE, $id);
65 }
66
67 public static function isActive(int $id): bool
68 {
69 return parent::_lookupActive($id, self::PARENT_TYPE);
70 }
71}
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)