jFormsControlImageUpload
extends jFormsControlUpload2
in package
base class for all jforms control
Tags
Table of Contents
- $accept : mixed
- $alertInvalid : string
- $alertRequired : string
- $capture : mixed
- $datatype : jDatatype
- $defaultValue : mixed
- $emptyValueLabel : string
- $fileInfo : mixed
- $help : string
- $hint : string
- $initialActivation : bool
- $initialReadOnly : bool
- $label : string
- $maxsize : mixed
- $mimetype : mixed
- $ref : string
- $required : bool
- $type : string
- $attributes : array<string|int, mixed>
- $container : jFormsDataContainer
- $error : mixed
- $form : jFormsBase
- $modified : mixed
- __construct() : mixed
- check() : int|null
- check and filter the value of the control.
- deactivate() : mixed
- deleteFile() : mixed
- getAttribute() : mixed
- getDisplayValue() : mixed
- getNewFile() : mixed
- getOriginalFile() : mixed
- getUniqueFileName() : mixed
- getWidgetType() : string
- isActivated() : bool
- check if the control is activated
- isContainer() : mixed
- says if the control can have multiple values
- isHtmlContent() : mixed
- says if the content is html or not
- isModified() : mixed
- isReadOnly() : bool
- check if the control is readonly
- saveFile() : mixed
- setAttribute() : mixed
- setData() : mixed
- setDataFromDao() : mixed
- setForm() : mixed
- setNewFile() : mixed
- setReadOnly() : mixed
- setValueFromRequest() : mixed
- _diffValues() : bool
- deleteNewFile() : mixed
- getTempFile() : mixed
- isUploadedFile() : mixed
- moveUploadedFile() : mixed
- processNewFile() : mixed
- processUpload() : mixed
Properties
$accept
public
mixed
$accept
= ''
$alertInvalid
public
string
$alertInvalid
= ''
the message when the value is invalid
$alertRequired
public
string
$alertRequired
= ''
the message when there is no value and it is required
$capture
public
mixed
$capture
= ''
$datatype
public
jDatatype
$datatype
the object that manage constraints on the value
$defaultValue
public
mixed
$defaultValue
= ''
the value when the form is created (and not initialized by a data source
$emptyValueLabel
public
string
$emptyValueLabel
=
ull
label displayed when only values are displayed, and when there is no value
$fileInfo
public
mixed
$fileInfo
= array()
$help
public
string
$help
= ''
the message for the help on the control (typically help displayed in a popup)
$hint
public
string
$hint
= ''
the message for tips on the control (typically the tooltip value)
$initialActivation
public
bool
$initialActivation
= rue
$initialReadOnly
public
bool
$initialReadOnly
= alse
indicate if the control is in read only mode
$label
public
string
$label
= ''
the label
$maxsize
public
mixed
$maxsize
= 0
$mimetype
public
mixed
$mimetype
= array()
$ref
public
string
$ref
= ''
the identifiant of the control
$required
public
bool
$required
= alse
true if the control should be filled by the user
$type
public
string
$type
=
ull
a type name that identify the control type
$attributes
protected
array<string|int, mixed>
$attributes
= array()
miscellaneous values attached to the control
$container
protected
jFormsDataContainer
$container
content all values of the form
$error
protected
mixed
$error
=
ull
$form
protected
jFormsBase
$form
the form object
$modified
protected
mixed
$modified
= alse
Methods
__construct()
public
__construct(string $ref) : mixed
Parameters
- $ref : string
-
the identifiant of the control
Return values
mixed —check()
check and filter the value of the control.
public
check() : int|null
It is the responsability of the implementation to fill the "errors" or "data" properties of the container.
Return values
int|null —null if it is ok, or one of jForms::ERRDATA_* constants when there is an error
deactivate()
public
deactivate([mixed $deactivation = true ]) : mixed
Parameters
- $deactivation : mixed = true
Return values
mixed —deleteFile()
public
deleteFile(mixed $directoryPath) : mixed
Parameters
- $directoryPath : mixed
Return values
mixed —getAttribute()
public
getAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —getDisplayValue()
public
getDisplayValue(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —getNewFile()
public
getNewFile() : mixed
Return values
mixed —getOriginalFile()
public
getOriginalFile() : mixed
Return values
mixed —getUniqueFileName()
public
getUniqueFileName(mixed $directoryPath[, mixed $alternateName = '' ]) : mixed
Parameters
- $directoryPath : mixed
- $alternateName : mixed = ''
Return values
mixed —getWidgetType()
public
getWidgetType() : string
Return values
string —the default widget type to use to render the control
isActivated()
check if the control is activated
public
isActivated() : bool
Return values
bool —true if it is activated
isContainer()
says if the control can have multiple values
public
isContainer() : mixed
Return values
mixed —isHtmlContent()
says if the content is html or not
public
isHtmlContent() : mixed
Tags
Return values
mixed —isModified()
public
isModified() : mixed
Return values
mixed —isReadOnly()
check if the control is readonly
public
isReadOnly() : bool
Return values
bool —true if it is readonly
saveFile()
public
saveFile(mixed $directoryPath[, mixed $alternateName = '' ]) : mixed
Parameters
- $directoryPath : mixed
- $alternateName : mixed = ''
Return values
mixed —setAttribute()
public
setAttribute(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
Return values
mixed —setData()
public
setData(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —setDataFromDao()
public
setDataFromDao(mixed $value, mixed $daoDatatype) : mixed
Parameters
- $value : mixed
- $daoDatatype : mixed
Return values
mixed —setForm()
public
setForm(jFormsBase $form) : mixed
Parameters
- $form : jFormsBase
Return values
mixed —setNewFile()
public
setNewFile(mixed $fileName) : mixed
Parameters
- $fileName : mixed
Return values
mixed —setReadOnly()
public
setReadOnly([mixed $r = true ]) : mixed
Parameters
- $r : mixed = true
Return values
mixed —setValueFromRequest()
public
setValueFromRequest(jRequest $request) : mixed
Parameters
- $request : jRequest
Return values
mixed —_diffValues()
protected
_diffValues(mixed &$v1, mixed &$v2) : bool
Parameters
- $v1 : mixed
- $v2 : mixed
Return values
bool —true if the values are not equals
deleteNewFile()
protected
deleteNewFile() : mixed
Return values
mixed —getTempFile()
protected
getTempFile(mixed $file) : mixed
Parameters
- $file : mixed
Return values
mixed —isUploadedFile()
protected
isUploadedFile(mixed $file) : mixed
Parameters
- $file : mixed
Return values
mixed —moveUploadedFile()
protected
moveUploadedFile(mixed $file, mixed $target) : mixed
Parameters
- $file : mixed
- $target : mixed
Return values
mixed —processNewFile()
protected
processNewFile(mixed $fileInfo) : mixed
Parameters
- $fileInfo : mixed
Return values
mixed —processUpload()
protected
processUpload(mixed $action, mixed $fileInfo) : mixed
Parameters
- $action : mixed
- $fileInfo : mixed