ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilCopyWizardExplorer.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
include_once(
'classes/class.ilExplorer.php'
);
25
33
class
ilCopyWizardExplorer
extends
ilExplorer
34
{
35
private
$lng
;
36
37
public
function
__construct
($a_target)
38
{
39
global
$lng
,$objDefinition;
40
41
$this->lng =
$lng
;
42
$this->objDefinition = $objDefinition;
43
parent::ilExplorer
($a_target);
44
$this->
initItemCounter
(1);
45
46
$this->
setTitleLength
(
ilObject::TITLE_LENGTH
);
47
}
48
52
public
function
getImage
($a_name, $a_type =
""
, $a_obj_id =
""
)
53
{
54
return
ilUtil::getImagePath
(
'icon_'
.$a_type.
'_s.gif'
);
55
}
56
64
function
isClickable
($a_type, $a_ref_id = 0)
65
{
66
// always return false
67
return
false
;
68
}
69
77
public
function
forceExpanded
()
78
{
79
return
true
;
80
}
81
82
90
public
function
buildSelect
($a_node_id,$a_type)
91
{
92
$selected = isset(
$_POST
[
'cp_options'
][$a_node_id][
'type'
]) ?
93
$_POST
[
'cp_options'
][$a_node_id][
'type'
] :
94
ilCopyWizardOptions::COPY_WIZARD_COPY
;
95
96
if
($this->objDefinition->allowCopy($a_type))
97
{
98
$options[
ilCopyWizardOptions::COPY_WIZARD_COPY
] = $this->lng->txt(
'copy'
);
99
}
100
if
($this->objDefinition->allowLink($a_type))
101
{
102
$options[
ilCopyWizardOptions::COPY_WIZARD_LINK
] = $this->lng->txt(
'link'
);
103
}
104
$options[
ilCopyWizardOptions::COPY_WIZARD_OMIT
] = $this->lng->txt(
'omit'
);
105
106
return
ilUtil::formSelect
($selected,
'cp_options['
.$a_node_id.
'][type]'
,
107
$options,
108
false
,
true
);
109
110
}
111
112
}
113
?>
Services
CopyWizard
classes
class.ilCopyWizardExplorer.php
Generated on Mon Apr 25 2016 19:01:25 for ILIAS by
1.8.1.2 (using
Doxyfile
)