19declare(strict_types=1);
34 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
38 $this->
lng->loadLanguageModule(
'rgrp');
39 $this->
lng->loadLanguageModule(
'grp');
49 $a_info->
addProperty($this->
lng->txt(
'grp_visibility'), $this->availabilityToString());
54 switch ($this->
object->getAvailabilityType()) {
56 return $this->
lng->txt(
'offline');
59 return $this->
lng->txt(
'grp_unlimited');
73 $radio_grp->setValue($this->
object->getAvailabilityType());
74 $radio_grp->setDisabled(
true);
77 $radio_grp->addOption($radio_opt);
80 $radio_grp->addOption($radio_opt);
87 $start->setDisabled(
true);
88 $start->setShowTime(
true);
89 $radio_opt->addSubItem($start);
92 $end->setDisabled(
true);
93 $end->setShowTime(
true);
94 $radio_opt->addSubItem($end);
96 $radio_grp->addOption($radio_opt);
static formatPeriod(ilDateTime $start, ilDateTime $end, bool $a_skip_starting_day=false, ?ilObjUser $user=null)
Format a period of two dates Shows: 14.
@classDescription Date and time handling
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
addCustomEditForm(ilPropertyFormGUI $a_form)
Add custom fields to edit form.
addCustomInfoFields(ilInfoScreenGUI $a_info)
Add custom fields to info screen.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
getType()
Functions that must be overwritten.
const ACTIVATION_UNLIMITED
const ACTIVATION_OFFLINE
Fixed activation.
This class represents an option in a radio group.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc