ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilDclDetailedViewDefinition.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
17{
18 const PARENT_TYPE = 'dclf';
22 protected $active = false;
26 protected $table_id;
30 protected static $record_view_cache = array();
31
32
38 public function getParentType()
39 {
40 return self::PARENT_TYPE;
41 }
42
43
52 public function getAvailablePlaceholders()
53 {
54 $all = array();
55
56 $tableview = new ilDclTableView($this->getId());
57 $table_id = $tableview->getTableId();
59 $fields = $objTable->getRecordFields();
60 $standardFields = $objTable->getStandardFields();
61
62 foreach ($fields as $field) {
63 $all[] = "[" . $field->getTitle() . "]";
64
65 if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_REFERENCE) {
66 $all[] = '[dclrefln field="' . $field->getTitle() . '"][/dclrefln]';
67 }
68 // SW 14.10.2015 http://www.ilias.de/mantis/view.php?id=16874
69 // if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_ILIAS_REF) {
70 // $all[] = '[dcliln field="' . $field->getTitle() . '"][/dcliln]';
71 // }
72 }
73
74 foreach ($standardFields as $field) {
75 $all[] = "[" . $field->getId() . "]";
76 }
77
78 return $all;
79 }
80
81
82 public static function exists($id)
83 {
84 return parent::_exists(self::PARENT_TYPE, $id);
85 }
86
87
88 public static function isActive($id)
89 {
90 return parent::_lookupActive($id, self::PARENT_TYPE);
91 }
92}
An exception for terminatinating execution or to throw for unit testing.
static getTableCache($table_id=0)
Class ilDclDetailedViewDefinition.
getAvailablePlaceholders()
Get all placeholders for table id.
Class ilDclTableView.
Class ilPageObject.