3 declare(strict_types=1);
    32     public function __construct(
string $a_title = 
"", 
string $a_postvar = 
"")
    36         $this->
lng = $DIC->language();
    37         $this->
user = $DIC->user();
    39         $this->
setType(
"background_image");
    42     public function setValue(
string $a_value): void
    44         $this->value = $a_value;
    54         $this->images = $a_images;
    68         $type = $input[
"type"] ?? 
"";
    69         $int_value = $input[
"int_value"] ?? 
"";
    70         $ext_value = $input[
"ext_value"] ?? 
"";
    78         if (
$type == 
"external") {
    94         $tpl = 
new ilTemplate(
"tpl.prop_background_image.html", 
true, 
true, 
"Services/Style/Content");
    96         $tpl->setVariable(
"POSTVAR", $this->
getPostVar());
    98         $int_options = array_merge(array(
"" => 
""), $this->
getImages());
   102         if (is_int(strpos($value, 
"/"))) {
   103             $current_type = 
"ext";
   104             $tpl->setVariable(
"EXTERNAL_SELECTED", 
'checked="checked"');
   107             $current_type = 
"int";
   108             $tpl->setVariable(
"INTERNAL_SELECTED", 
'checked="checked"');
   111         foreach ($int_options as $option) {
   112             $tpl->setCurrentBlock(
"int_option");
   113             $tpl->setVariable(
"VAL_INT", $option);
   114             $tpl->setVariable(
"TXT_INT", $option);
   116             if ($current_type == 
"int" && $value == $option) {
   117                 $tpl->setVariable(
"INT_SELECTED", 
'selected="selected"');
   119             $tpl->parseCurrentBlock();
   129         if ($a_values[$this->
getPostVar()][
"type"] == 
"internal") {
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)