3 declare(strict_types=1);
    28     protected string $top = 
"";
    45         $this->
lng = $DIC->language();
    51     public function setValue(array $valueArray): void
    53         $this->top = $valueArray[
'top'];
    54         $this->left = $valueArray[
'left'];
    55         $this->right = $valueArray[
'right'];
    56         $this->bottom = $valueArray[
'bottom'];
    69     public function setTop(
string $a_value): void
    71         $this->top = $a_value;
    81         $this->bottom = $a_value;
    89     public function setLeft(
string $a_value): void
    91         $this->left = $a_value;
    99     public function setRight(
string $a_value): void
   101         $this->right = $a_value;
   111         $this->size = $a_size;
   118         $positions = [
'top', 
'left', 
'right', 
'bottom'];
   126         foreach ($positions as $position) {
   127             if (isset($a_values[$postVar . 
'_' . $position])) {
   128                 $values[$position] = $a_values[$postVar . 
'_' . $position];
   129             } elseif (isset($a_values[$postVar][$position])) {
   130                 $values[$position] = $a_values[$postVar][$position];
   151                 || ($val[$this->
getPostVar() . 
'_bottom'] == 
"")
   152                 || ($val[$this->
getPostVar() . 
'_left'] == 
"")
   153                 || ($val[$this->
getPostVar() . 
'_right'] == 
"")
   161             if ((!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is', $val[$this->
getPostVar() . 
'_top'])) ||
   162                 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is', $val[$this->
getPostVar() . 
'_right'])) ||
   163                 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is', $val[$this->
getPostVar() . 
'_bottom'])) ||
   164                 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is', $val[$this->
getPostVar() . 
'_left']))) {
   175         $ret[$this->
getPostVar() . 
'_top'] = trim($val[
'top']);
   176         $ret[$this->
getPostVar() . 
'_right'] = trim($val[
'right']);
   177         $ret[$this->
getPostVar() . 
'_bottom'] = trim($val[
'bottom']);
   178         $ret[$this->
getPostVar() . 
'_left'] = trim($val[
'left']);
   186         if (strlen($this->
getTop())) {
   196         if (strlen($this->
getLeft())) {
   217                 " disabled=\"disabled\"" 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)