ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilDclCreateViewDefinition.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
12
class
ilDclCreateViewDefinition
extends
ilPageObject
13
{
14
const
PARENT_TYPE
=
'dclf'
;
18
protected
$active
=
false
;
22
protected
$table_id
;
26
protected
static
$record_view_cache
= array();
27
28
34
public
function
getParentType
()
35
{
36
return
self::PARENT_TYPE;
37
}
38
39
48
public
function
getAvailablePlaceholders
()
49
{
50
$all = array();
51
52
$tableview =
new
ilDclTableView
($this->
getId
());
53
$table_id
= $tableview->getTableId();
54
$objTable =
ilDclCache::getTableCache
(
$table_id
);
55
$fields = $objTable->getRecordFields();
56
$standardFields = $objTable->getStandardFields();
57
58
foreach
($fields as $field) {
59
$all[] =
"["
. $field->getTitle() .
"]"
;
60
61
if
($field->getDatatypeId() ==
ilDclDatatype::INPUTFORMAT_REFERENCE
) {
62
$all[] =
'[dclrefln field="'
. $field->getTitle() .
'"][/dclrefln]'
;
63
}
64
// SW 14.10.2015 http://www.ilias.de/mantis/view.php?id=16874
65
// if ($field->getDatatypeId() == ilDclDatatype::INPUTFORMAT_ILIAS_REF) {
66
// $all[] = '[dcliln field="' . $field->getTitle() . '"][/dcliln]';
67
// }
68
}
69
70
foreach
($standardFields as $field) {
71
$all[] =
"["
. $field->getId() .
"]"
;
72
}
73
74
return
$all;
75
}
76
77
78
public
static
function
exists
(
$id
)
79
{
80
return
parent::_exists(self::PARENT_TYPE,
$id
);
81
}
82
83
84
public
static
function
isActive
(
$id
)
85
{
86
return
parent::_lookupActive(
$id
, self::PARENT_TYPE);
87
}
88
}
ilDclCreateViewDefinition\isActive
static isActive($id)
Definition:
class.ilDclCreateViewDefinition.php:84
ilDclCreateViewDefinition\$active
$active
Definition:
class.ilDclCreateViewDefinition.php:18
ilPageObject\$id
$id
Definition:
class.ilPageObject.php:72
ilDclCreateViewDefinition\$table_id
$table_id
Definition:
class.ilDclCreateViewDefinition.php:22
ilDclCreateViewDefinition\getAvailablePlaceholders
getAvailablePlaceholders()
Get all placeholders for table id.
Definition:
class.ilDclCreateViewDefinition.php:48
ilDclCreateViewDefinition\$record_view_cache
static $record_view_cache
Definition:
class.ilDclCreateViewDefinition.php:26
ilDclCreateViewDefinition\getParentType
getParentType()
Get parent type.
Definition:
class.ilDclCreateViewDefinition.php:34
ilDclCache\getTableCache
static getTableCache($table_id=0)
Definition:
class.ilDclCache.php:126
ilDclCreateViewDefinition\exists
static exists($id)
Definition:
class.ilDclCreateViewDefinition.php:78
ilPageObject\getId
getId()
Definition:
class.ilPageObject.php:507
ilPageObject
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition:
class.ilPageObject.php:40
ilDclTableView
Class ilDclTableView.
Definition:
class.ilDclTableView.php:9
ilDclCreateViewDefinition
Class ilDclCreateViewDefinition.
Definition:
class.ilDclCreateViewDefinition.php:12
ilDclDatatype\INPUTFORMAT_REFERENCE
const INPUTFORMAT_REFERENCE
Definition:
class.ilDclDatatype.php:21
ilDclCreateViewDefinition\PARENT_TYPE
const PARENT_TYPE
Definition:
class.ilDclCreateViewDefinition.php:14
Modules
DataCollection
classes
CreateView
class.ilDclCreateViewDefinition.php
Generated on Fri Apr 4 2025 21:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)