19declare(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) {
51 $this->setupInputField($input, $this->getField());
55 if ($record_id !==
null && $record->getId()) {
56 $field_value = $record->getRecordFieldValue($this->getField()->
getId());
58 $input->setRequired(
false);
62 if ($this->
ctrl->isAsynch()) {
63 $input->setDisabled(
true);
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);
const PROP_SUPPORTED_FILE_TYPES
getField()
Return BaseFieldModel.
static getRecordCache(?int $record_id)
getInputField(ilPropertyFormGUI $form, ?int $record_id=null)
Returns field-input.
buildFieldCreationInput(ilObjDataCollection $dcl, string $mode='create')
Build the creation-input-field.
requiredWorkaroundForInputField(ilFileInputGUI $input, ?int $record_id)
This class represents an option in a radio group.
This class represents a text property in a property form.
if(!file_exists('../ilias.ini.php'))