27 $this->
setSuffixes(array(
"jpg",
"jpeg",
"png",
"gif"));
40 $this->cache = ($a_cache) ?
true :
false;
60 $this->image = $a_image;
100 $i_tpl =
new ilTemplate(
"tpl.prop_image_file.html",
true,
true,
"Services/Form");
108 $i_tpl->setCurrentBlock(
"delete_bl");
109 $i_tpl->setVariable(
"POST_VAR_D", $this->
getPostVar());
110 $i_tpl->setVariable(
"TXT_DELETE_EXISTING",
111 $lng->txt(
"delete_existing_file"));
112 $i_tpl->parseCurrentBlock();
117 $i_tpl->setCurrentBlock(
"has_value");
118 $i_tpl->setVariable(
"TEXT_IMAGE_NAME", $this->
getValue());
119 $i_tpl->parseCurrentBlock();
121 $i_tpl->setCurrentBlock(
"image");
127 $i_tpl->setVariable(
"SRC_IMAGE", $this->
getImage() .
"&time=" . time());
131 $i_tpl->setVariable(
"SRC_IMAGE", $this->
getImage() .
"?time=" . time());
136 $i_tpl->setVariable(
"SRC_IMAGE", $this->
getImage());
138 $i_tpl->setVariable(
"ALT_IMAGE", $this->
getAlt());
139 $i_tpl->parseCurrentBlock();
142 $i_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
143 $i_tpl->setVariable(
"ID", $this->
getFieldId());
144 $i_tpl->setVariable(
"TXT_MAX_SIZE", $lng->txt(
"file_notice").
" ".
149 $i_tpl->setVariable(
"DISABLED",
150 " disabled=\"disabled\"");
153 $a_tpl->setCurrentBlock(
"prop_generic");
154 $a_tpl->setVariable(
"PROP_GENERIC", $i_tpl->get());
155 $a_tpl->parseCurrentBlock();