ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
5
18{
19 const PARENT_TYPE = 'dclf';
20
24 protected $active = false;
28 protected $table_id;
32 protected static $record_view_cache = array();
33
39 public function getParentType()
40 {
41 return self::PARENT_TYPE;
42 }
43
51 public function getAvailablePlaceholders()
52 {
53 $all = array();
54
55 $tableview = new ilDclTableView($this->getId());
56 $table_id = $tableview->getTableId();
58 $fields = $objTable->getRecordFields();
59 $standardFields = $objTable->getStandardFields();
60
61 foreach ($fields as $field) {
62 $all[] = "[" . $field->getTitle() . "]";
63
64 if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_REFERENCE) {
65 $all[] = '[dclrefln field="' . $field->getTitle() . '"][/dclrefln]';
66 }
67 // SW 14.10.2015 http://www.ilias.de/mantis/view.php?id=16874
68 // if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_ILIAS_REF) {
69 // $all[] = '[dcliln field="' . $field->getTitle() . '"][/dcliln]';
70 // }
71 }
72
73 foreach ($standardFields as $field) {
74 $all[] = "[" . $field->getId() . "]";
75 }
76
77 return $all;
78 }
79
80 public static function exists($id)
81 {
82 return parent::_exists(self::PARENT_TYPE, $id);
83 }
84
85 public static function isActive($id)
86 {
87 return parent::_lookupActive($id, self::PARENT_TYPE);
88 }
89}
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.