3 declare(strict_types=1);
    41         string $a_postvar = 
""    45         $this->
lng = $DIC->language();
    50     public function setDays(
int $a_days): void
    52         $this->days = $a_days;
    62         $this->hours = $a_hours;
    72         $this->minutes = $a_minutes;
    82         $this->seconds = $a_seconds;
    87         $this->months = $a_months;
   102         $this->showmonths = $a_show_months;
   112         $this->showdays = $a_showdays;
   122         $this->showhours = $a_showhours;
   132         $this->showminutes = $a_showminutes;
   142         $this->showseconds = $a_showseconds;
   152         $values = ($a_values[$this->
getPostVar()] ?? []);
   153         $value_or_zero = fn ($part) => array_key_exists($part, $values ?? []) ? (
int) $values[$part] : 0;
   155         $this->
setDays($value_or_zero(
"dd"));
   156         $this->
setHours($value_or_zero(
"hh"));
   184         $tpl = 
new ilTemplate(
"tpl.prop_duration.html", 
true, 
true, 
"components/ILIAS/Form");
   187             $tpl->setCurrentBlock(
"dur_months");
   188             $tpl->setVariable(
"TXT_MONTHS", 
$lng->
txt(
"form_months"));
   190             for ($i = 0; $i <= 36; $i++) {
   207             $tpl->parseCurrentBlock();
   210             $tpl->setCurrentBlock(
"dur_days");
   211             $tpl->setVariable(
"TXT_DAYS", 
$lng->
txt(
"form_days"));
   213             for ($i = 0; $i <= 366; $i++) {
   230             $tpl->parseCurrentBlock();
   233             $tpl->setCurrentBlock(
"dur_hours");
   234             $tpl->setVariable(
"TXT_HOURS", 
$lng->
txt(
"form_hours"));
   236             for ($i = 0; $i <= 23; $i++) {
   253             $tpl->parseCurrentBlock();
   256             $tpl->setCurrentBlock(
"dur_minutes");
   257             $tpl->setVariable(
"TXT_MINUTES", 
$lng->
txt(
"form_minutes"));
   259             for ($i = 0; $i <= 59; $i++) {
   276             $tpl->parseCurrentBlock();
   279             $tpl->setCurrentBlock(
"dur_seconds");
   280             $tpl->setVariable(
"TXT_SECONDS", 
$lng->
txt(
"form_seconds"));
   282             for ($i = 0; $i <= 59; $i++) {
   299             $tpl->parseCurrentBlock();
   319         return serialize(
$data);
   324         $data = unserialize($a_data);
   337             $value += $this->
getMonths() * 30 * 24 * 60 * 60;
   340             $value += $this->
getDays() * 24 * 60 * 60;
   343             $value += $this->
getHours() * 60 * 60;
   357         $value_or_zero = fn ($part) => array_key_exists($part, $values ?? []) ? (
int) $values[$part] : 0;
   360             $value += $value_or_zero(
"MM") * 30 * 24 * 60 * 60;
   363             $value += $value_or_zero(
"dd") * 24 * 60 * 60;
   366             $value += $value_or_zero(
"hh") * 60 * 60;
   369             $value += $value_or_zero(
"mm") * 60;
   372             $value += $value_or_zero(
"ss");
 
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)
 
__construct(Container $dic, ilPlugin $plugin)