18 $input->setSuffixes($this->
getField()->getSupportedExtensions());
19 $input->setAllowDeletion(
true);
36 if ($record_id && $record->getId()) {
37 $field_value = $record->getRecordFieldValue($this->
getField()->getId());
39 $input->setRequired(
false);
43 if ($this->ctrl->isAsynch()) {
44 $input->setDisabled(
true);
55 $input->setSubmitFormOnEnter(
true);
75 $file_name = $file_obj->getTitle();
76 if (!$filter || strpos(strtolower($file_name), strtolower($filter)) !==
false) {
88 $opt = parent::buildFieldCreationInput($dcl, $mode);
91 $prop_filetype->setInfo($this->lng->txt(
'dcl_supported_filetypes_desc'));
93 $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.null
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
This class represents a text property in a property form.
if(empty($password)) $table
if(isset($_POST['submit'])) $form