Jelix 1.7.18

upload2_htmlFormWidget extends WidgetBase
in package
implements ParentWidgetInterface

Widget to display the selection of a file to upload.

For images upload, some attributes can be set to indicate the url of the image. The url can be forged from a selector or from a base URI. From a selector : action, parameters, and the parameter name that will contain the filename, should be given in attributes uriAction, uriActionParameters, uriActionFileParameter From a base URI : a baseURI attribute should be given, with the URL on which the filename will be append.

Interfaces, Classes and Traits

ParentWidgetInterface

Table of Contents

$baseURI  : string
$imgMaxHeight  : mixed
$imgMaxWidth  : mixed
$uriAction  : string
$uriActionFileParameter  : string
parameter name containing the control value, for the jUrl object used to get the URL of the image.
$uriActionParameters  : array<string|int, mixed>
addFinalJs()  : mixed
addJs()  : mixed
controlJsChild()  : mixed
outputControl()  : mixed
outputControlValue()  : mixed
setAttributes()  : mixed
setDefaultAttributes()  : mixed
_outputControlValue()  : mixed
displayEndChoice()  : mixed
displayEndChoiceItem()  : mixed
displayInputFile()  : mixed
displayStartChoice()  : mixed
displayStartChoiceItem()  : mixed
displayValueASFilename()  : mixed
displayValueAsImage()  : mixed
filterUploadAttributes()  : mixed
jsChoiceInternal()  : mixed
outputJs()  : mixed

Properties

$uriAction

protected string $uriAction = ''

the jUrl action selector used to get the URL of the image

$uriActionFileParameter

parameter name containing the control value, for the jUrl object used to get the URL of the image.

protected string $uriActionFileParameter = ''

The parameter can already exist into $uriActionParameters and could contain a %s pattern that will be replaced by the value. Else the existing parameter value will be replaced by the new value.

parameter name containing the control value

$uriActionParameters

protected array<string|int, mixed> $uriActionParameters = array()

parameters for the jUrl object used to get the URL of the image

Methods

setAttributes()

public setAttributes(mixed $attr) : mixed
Parameters
$attr : mixed
Return values
mixed

setDefaultAttributes()

public setDefaultAttributes(mixed $attr) : mixed
Parameters
$attr : mixed
Return values
mixed

_outputControlValue()

protected _outputControlValue(mixed $fileName[, mixed $suffixId = '' ]) : mixed
Parameters
$fileName : mixed
$suffixId : mixed = ''
Return values
mixed

displayInputFile()

protected displayInputFile(mixed $attr) : mixed
Parameters
$attr : mixed
Return values
mixed

displayStartChoice()

protected displayStartChoice(mixed $blockId, mixed $attrs) : mixed
Parameters
$blockId : mixed
$attrs : mixed
Return values
mixed

displayStartChoiceItem()

protected displayStartChoiceItem(mixed $idItem, mixed $idRadio, mixed $attrRadio, mixed $checked, mixed $label) : mixed
Parameters
$idItem : mixed
$idRadio : mixed
$attrRadio : mixed
$checked : mixed
$label : mixed
Return values
mixed

displayValueASFilename()

protected displayValueASFilename(mixed $attr, mixed $filename, mixed $mimeType) : mixed
Parameters
$attr : mixed
$filename : mixed
$mimeType : mixed
Return values
mixed

displayValueAsImage()

protected displayValueAsImage(mixed $attr, mixed $url, mixed $filename, mixed $style) : mixed
Parameters
$attr : mixed
$url : mixed
$filename : mixed
$style : mixed
Return values
mixed

filterUploadAttributes()

protected filterUploadAttributes(array<string|int, mixed> &$attr) : mixed
Parameters
$attr : array<string|int, mixed>
Return values
mixed

Search results