19 declare(strict_types=1);
    33                 $DIC->language()->txt(
'trac_frm_contribution_num_postings'),
    36             $num_postings->allowDecimals(
false);
    37             $num_postings->setMinValue(1);
    38             $num_postings->setMaxValue(99999);
    39             $num_postings->setSize(4);
    40             $num_postings->setRequired(
true);
    43                 $num_postings->setValue((
string) $requiredNumberOfPostings);
    45                 $num_postings->setValue(
'');
    50             $modeElement->
setTitle(parent::getModeText($mode));
    58         $current_value = $frm_properties->getLpReqNumPostings();
    60         if (is_numeric($form->
getInput(
'number_of_postings'))) {
    61             $frm_properties->setLpReqNumPostings(
    62                 (
int) $form->
getInput(
'number_of_postings')
    65             $frm_properties->setLpReqNumPostings(null);
    67         $frm_properties->update();
    69         if ($current_value !== $frm_properties->getLpReqNumPostings()) {
   105         $text = parent::getModeText($mode);
   112                     match ($number_of_postings) {
   113                         1 => $DIC->language()->txt(
'trac_frm_contribution_num_postings_info_s'),
   114                         default => $DIC->language()->txt(
'trac_frm_contribution_num_postings_info_p')
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
saveModeConfiguration(ilPropertyFormGUI $form, bool &$modeChanged)
 
static getInstance(int $a_obj_id=0)
 
const LP_MODE_CONTRIBUTION_TO_DISCUSSION
 
static getDefaultModes(bool $lp_active)
 
const LP_MODE_DEACTIVATED
 
appendModeConfiguration(int $mode, ilRadioOption $modeElement)
 
setTitle(string $a_title)