50 $this->lng = $DIC->language();
51 $this->
user = $DIC->user();
52 parent::__construct($a_title, $a_postvar);
53 $this->
setType(
"background_image");
63 $this->value = $a_value;
118 if (
$type ==
"external") {
132 $tpl =
new ilTemplate(
"tpl.prop_background_image.html",
true,
true,
"Services/Style/Content");
140 if (is_int(strpos(
$value,
"/"))) {
141 $current_type =
"ext";
142 $tpl->setVariable(
"EXTERNAL_SELECTED",
'checked="checked"');
145 $current_type =
"int";
146 $tpl->setVariable(
"INTERNAL_SELECTED",
'checked="checked"');
149 foreach ($int_options as $option) {
150 $tpl->setCurrentBlock(
"int_option");
151 $tpl->setVariable(
"VAL_INT", $option);
152 $tpl->setVariable(
"TXT_INT", $option);
154 if ($current_type ==
"int" &&
$value == $option) {
155 $tpl->setVariable(
"INT_SELECTED",
'selected="selected"');
157 $tpl->parseCurrentBlock();
160 $a_tpl->setCurrentBlock(
"prop_generic");
161 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
162 $a_tpl->parseCurrentBlock();
174 if ($a_values[$this->
getPostVar()][
"type"] ==
"internal") {
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
Done rendering charts as images
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.