|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($name, $args=[]) | |
| getConfig () | |
| getEmptyValue () | |
Public Member Functions inherited from PKP\components\forms\FieldUpload | |
| validate () | |
Data Fields | |
| $altTextDescription = '' | |
| $altTextLabel = '' | |
| $baseUrl = '' | |
| $component = 'field-upload-image' | |
| $thumbnailDescription = '' | |
Data Fields inherited from PKP\components\forms\FieldUpload | |
| $component = 'field-upload' | |
| $options = [] | |
Data Fields inherited from PKP\components\forms\Field | |
| $component | |
| $default | |
| $description | |
| $groupId | |
| $helpSection | |
| $helpTopic | |
| $isMultilingual = false | |
| $isRequired = false | |
| $label = '' | |
| $name | |
| $showWhen | |
| $tooltip | |
| $value | |
Definition at line 15 of file FieldUploadImage.inc.php.
| PKP\components\forms\FieldUploadImage::__construct | ( | $name, | |
$args = [] |
|||
| ) |
Initialize the form field
| $name | string |
| $args | array [ @option label string|object @option groupId string @option isRequired boolean @option isMultilingual boolean ] |
Reimplemented from PKP\components\forms\FieldUpload.
Definition at line 46 of file FieldUploadImage.inc.php.
References PKP\components\forms\Field\$name.
| PKP\components\forms\FieldUploadImage::getConfig | ( | ) |
Get a configuration object representing this field to be passed to the UI Library
Reimplemented from PKP\components\forms\FieldUpload.
Definition at line 53 of file FieldUploadImage.inc.php.
References PKP\components\forms\FieldUploadImage\$baseUrl.
| PKP\components\forms\FieldUploadImage::getEmptyValue | ( | ) |
Get a default empty value for this field type
The UI Library expects to receive a value property for each field. If it's a multilingual field, it expects the value property to contain keys for each locale in the form.
This function will provide a default empty value so that a form can fill in the empty values automatically.
Reimplemented from PKP\components\forms\Field.
Definition at line 70 of file FieldUploadImage.inc.php.
| string FieldUploadImage::$altTextDescription = '' |
Description for the alt text field
Definition at line 35 of file FieldUploadImage.inc.php.
| string FieldUploadImage::$altTextLabel = '' |
Label for the alt text field
Definition at line 29 of file FieldUploadImage.inc.php.
| string FieldUploadImage::$baseUrl = '' |
Base url for displaying the image
Definition at line 23 of file FieldUploadImage.inc.php.
Referenced by PKP\components\forms\FieldUploadImage\getConfig().
| PKP\components\forms\FieldUploadImage::$component = 'field-upload-image' |
Which UI Library component this field represents
Definition at line 17 of file FieldUploadImage.inc.php.
| string FieldUploadImage::$thumbnailDescription = '' |
Description for the image thumbnail
Definition at line 41 of file FieldUploadImage.inc.php.