19 declare(strict_types=1);
25 ?
int $record_id =
null 32 $supported_suffixes = $this->
getField()->getSupportedExtensions();
33 if (!empty($supported_suffixes)) {
34 $input->setSuffixes($supported_suffixes);
37 $input->setAllowDeletion(
true);
47 if ($record_id !==
null) {
55 if ($record_id !==
null && $record->getId()) {
56 $field_value = $record->getRecordFieldValue($this->
getField()->
getId());
62 if ($this->
ctrl->isAsynch()) {
69 string $mode =
'create' 71 $opt = parent::buildFieldCreationInput($dcl, $mode);
74 $this->
lng->txt(
'dcl_supported_filetypes'),
77 $prop_filetype->setInfo($this->
lng->txt(
'dcl_supported_filetypes_desc'));
79 $opt->addSubItem($prop_filetype);
This class represents an option in a radio group.
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
const PROP_SUPPORTED_FILE_TYPES
requiredWorkaroundForInputField(ilFileInputGUI $input, ?int $record_id)
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getField()
Return BaseFieldModel.
static getRecordCache(?int $record_id)
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')