59 $this->lng = $DIC->language();
60 parent::__construct($a_title, $a_postvar);
71 $this->days = $a_days;
91 $this->
hours = $a_hours;
111 $this->minutes = $a_minutes;
143 $this->months = $a_months;
175 $this->showmonths = $a_show_months;
195 $this->showdays = $a_showdays;
215 $this->showhours = $a_showhours;
235 $this->showminutes = $a_showminutes;
255 $this->showseconds = $a_showseconds;
314 $a_tpl->setCurrentBlock(
"prop_generic");
315 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
316 $a_tpl->parseCurrentBlock();
327 $tpl =
new ilTemplate(
"tpl.prop_duration.html",
true,
true,
"Services/Form");
330 $tpl->setCurrentBlock(
"dur_months");
331 $tpl->setVariable(
"TXT_MONTHS",
$lng->txt(
"form_months"));
333 for (
$i=0;
$i<=36;
$i++) {
350 $tpl->parseCurrentBlock();
353 $tpl->setCurrentBlock(
"dur_days");
354 $tpl->setVariable(
"TXT_DAYS",
$lng->txt(
"form_days"));
356 for (
$i=0;
$i<=366;
$i++) {
373 $tpl->parseCurrentBlock();
376 $tpl->setCurrentBlock(
"dur_hours");
377 $tpl->setVariable(
"TXT_HOURS",
$lng->txt(
"form_hours"));
379 for (
$i=0;
$i<=23;
$i++) {
396 $tpl->parseCurrentBlock();
399 $tpl->setCurrentBlock(
"dur_minutes");
400 $tpl->setVariable(
"TXT_MINUTES",
$lng->txt(
"form_minutes"));
402 for (
$i=0;
$i<=59;
$i++) {
419 $tpl->parseCurrentBlock();
422 $tpl->setCurrentBlock(
"dur_seconds");
423 $tpl->setVariable(
"TXT_SECONDS",
$lng->txt(
"form_seconds"));
425 for (
$i=0;
$i<=59;
$i++) {
442 $tpl->parseCurrentBlock();
468 return serialize(
$data);
476 $data = unserialize($a_data);
494 $value += $this->
getMonths()*30*24*60*60;
497 $value += $this->
getDays()*24*60*60;
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.
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
sprintf('%.4f', $callTime) seconds