18 $input->setSuffixes($this->
getField()->getSupportedExtensions());
19 $input->setAllowDeletion(
true);
37 if ($record_id && $record->getId()) {
38 $field_value = $record->getRecordFieldValue($this->
getField()->getId());
40 $input->setRequired(
false);
44 if ($this->ctrl->isAsynch()) {
45 $input->setDisabled(
true);
56 $input->setSubmitFormOnEnter(
true);
76 $file_name = $file_obj->getTitle();
77 if (!$filter || strpos(strtolower($file_name), strtolower($filter)) !==
false) {
90 $opt = parent::buildFieldCreationInput($dcl, $mode);
93 $prop_filetype->setInfo($this->lng->txt(
'dcl_supported_filetypes_desc'));
95 $opt->addSubItem($prop_filetype);
An exception for terminatinating execution or to throw for unit testing.
const PROP_SUPPORTED_FILE_TYPES
Class ilDclBaseFieldRepresentation.
setupInputField(ilFormPropertyGUI $input, ilDclBaseFieldModel $field)
Sets basic settings on field-input.
getFilterInputFieldValue( $input)
setupFilterInputField(ilFormPropertyGUI $input)
Set basic settings for filter-input-gui.
getField()
Return BaseFieldModel.
Class ilDclBaseRecordModel.
getRecordFieldValue($field_id)
Get Field Value.
static getRecordCache($record_id=0)
Class ilDclFileuploadFieldRepresentaion.
passThroughFilter(ilDclBaseRecordModel $record, $filter)
Checks if a filter affects a record.bool
addFilterInputFieldToTable(ilTable2GUI $table)
Add filter input to TableGUI.null
buildFieldCreationInput(ilObjDataCollection $dcl, $mode='create')
@inheritDoc
getInputField(ilPropertyFormGUI $form, $record_id=0)
Returns field-input.?ilFormPropertyGUI
requiredWorkaroundForInputField($input, $record_id)
Class ilObjDataCollection.
static _lookupType($a_id, $a_reference=false)
lookup object type
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
This class represents a text property in a property form.