MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MFileField
Diagrama de heranças da classe MFileField
MTextField MTextField MInputControl MInputControl MInputControl MInputControl MFormControl MFormControl MFormControl MFormControl MControl MControl MControl MControl MComponent MComponent MComponent MComponent FileField

Membros públicos

 __construct ( $name='', $value='', $label='', $size=40, $hint='')
 
 copyFile ( $path)
 
 getFileName ()
 
 getFileType ()
 
 __construct ($name, $value='', $label='', $size=40, $hint='')
 
 setIsMultiple ($isMultiple)
 
 setAddButton ($addButton)
 
 getAddButton ()
 
 setRemoveButton ($removeButton)
 
 getRemoveButton ()
 
 generateInner ()
 
 generate ()
 
- Membros públicos herdados de MTextField
 __construct ( $name='', $value='', $label='', $size=10, $hint='', $validator=NULL, $isReadOnly=false)
 
 getValidator ()
 
 setValidator ( $value)
 
 addMask ( $mask, $optional=true, $msg='')
 
 __construct ( $name='', $value='', $label='', $size=10, $hint='', $validator=NULL, $isReadOnly=false)
 
 getValidator ()
 
 setValidator ( $value)
 
 addMask ( $mask, $optional=true, $msg='')
 
- Membros públicos herdados de MInputControl
 setAutoPostBack ( $value)
 
 generateLabel ()
 
 getOnClick ($action, $attr, $optional)
 
- Membros públicos herdados de MFormControl
 setValue ( $value)
 
 getValue ()
 
 setSubmittedValue ()
 
 setLabel ( $label)
 
 setFormMode ( $mode)
 
 setReadOnly ( $status)
 
- Membros públicos herdados de MControl
 __construct ( $name=NULL)
 
 setName ($name)
 
 setId ($id)
 
 getId ()
 
 getName ()
 
 getUniqueId ()
 
 __clone ()
 
 __set ( $name, $value)
 
 __get ( $name)
 
 setClass ($cssClass, $add=TRUE)
 
 insertClass ( $cssClass)
 
 addStyleFile ( $styleFile)
 
 getClass ()
 
 addStyle ($name, $value)
 
 setStyle ($style)
 
 getStyle ()
 
 getBoxStyle ()
 
 setPosition ($left, $top, $position='absolute')
 
 setWidth ($value)
 
 setHeight ($value)
 
 setColor ($value)
 
 setVisibility ($value)
 
 setFont ($value)
 
 addAttribute ( $name, $value='')
 
 setAttribute ( $name, $value=null)
 
 getAttribute ( $name)
 
 setAttributes ($attr)
 
 attributes ( $mergeDuplicates=false)
 
 getAttributes ( $mergeDuplicates=false)
 
 setEnabled ($state)
 
 setJsHint ( $hint)
 
 setHint ( $hint)
 
 setCaption ($caption)
 
 setHTMLTitle ($title)
 
 eventHandler ()
 
 attachEventHandler ( $name, $handler, $param=NULL)
 
 addEvent ($event, $handler, $preventDefault=true)
 
 hasEvent ($event)
 
 generateEvent ()
 
 setContent ($inner)
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Membros públicos estáticos

static getUploadInfo ()
 
static getUploadErrors ()
 
static uploadFiles ($path)
 

Campos de Dados

const UPLOAD_INFO = 'uploadInfo'
 
const UPLOAD_ERRORS = 'uploadErrors'
 
const MULTIPLE_UPLOAD_BUTTON_STYLE = 'mFileFieldMultipleButton'
 
- Campos de Dados herdados de MTextField
 $size
 
 $type
 
 $validator
 
 $rows
 
 $cols
 
 $mask
 
- Campos de Dados herdados de MInputControl
 $autoPostBack
 
 $validator
 
- Campos de Dados herdados de MFormControl
 $label
 
 $showLabel
 
const ALIGN_CENTER = 'center'
 
const ALIGN_LEFT = 'left'
 
const ALIGN_RIGHT = 'right'
 
const LAYOUT_HORIZONTAL = 'horizontal'
 
const LAYOUT_VERTICAL = 'vertical'
 
 $form
 
 $formName
 
 $controlBox
 
 $box
 
 $value
 
- Campos de Dados herdados de MControl
 $id
 
 $uniqueId
 
 $enabled
 
 $style
 
 $attrs
 
 $attributes
 
 $maintainState
 
 $readonly
 
 $visible
 
 $caption
 
 $jsHint
 
 $hint
 
 $cssp
 
 $inner
 
 $parent
 
 $eventHandlers
 
 $painter
 
 $event
 
 $formId
 
const ALIGN_CENTER = 'center'
 
const ALIGN_LEFT = 'left'
 
const ALIGN_RIGHT = 'right'
 
const FORM_MODE_WHOLE_ROW = 0
 
const FORM_MODE_SHOW_SIDE = 1
 
const FORM_MODE_SHOW_ABOVE = 2
 
const FORM_MODE_SHOW_NBSP = 3
 
 $formMode
 
- Campos de Dados herdados de MComponent
 $manager
 
 $page
 
 $owner
 
 $name
 
 $className
 

Outros membros herdados

- Atributos Públicos Estáticos herdados de MControl
static $_number = 0
 
- Membros protegidos herdados de MFormControl
 generateLabelMode ($label)
 
- Membros protegidos herdados de MControl
 _addStyle ($name, $value)
 

Descrição detalhada

Documentação dos Construtores & Destrutor

◆ __construct() [1/2]

__construct ( $name = '',
$value = '',
$label = '',
$size = 40,
$hint = '' )

Reimplementado de MInputControl.

◆ __construct() [2/2]

__construct ( $name,
$value = '',
$label = '',
$size = 40,
$hint = '' )

MFileField constructor.

Parâmetros
string$nameField id and name.
string$valueDefault value.
string$labelField label.
integer$sizeField size.
string$hintHint.

Reimplementado de MInputControl.

Documentação das funções

◆ copyFile()

copyFile ( $path)

◆ generate()

generate ( )
Retorna
string The whole component in string (HTML) format.

Reimplementado de MControl.

◆ generateInner()

generateInner ( )

Generate inner content.

Reimplementado de MTextField.

◆ getAddButton()

getAddButton ( )
Retorna
object Get the MButton instance which adds more files.

◆ getFileName()

getFileName ( )

◆ getFileType()

getFileType ( )

◆ getRemoveButton()

getRemoveButton ( )
Retorna
object Get the MButton instance which removes files.

◆ getUploadErrors()

static getUploadErrors ( )
static
Retorna
array List with the upload errors.

◆ getUploadInfo()

static getUploadInfo ( )
static
Retorna
array List with the names of the uploaded files

◆ setAddButton()

setAddButton ( $addButton)
Parâmetros
object$addButtonSet the MButton instance which will add more files.

◆ setIsMultiple()

setIsMultiple ( $isMultiple)
Parâmetros
boolean$isMultipleSet if the component must support the upload of multiple files.

◆ setRemoveButton()

setRemoveButton ( $removeButton)
Parâmetros
object$removeButtonSet the MButton instance which will remove files.

◆ uploadFiles()

static uploadFiles ( $path)
static

Move the uploaded files to the specified path

Parâmetros
string$pathPath where the files must be stored
Retorna
array Array with name and path of the uploaded files

Documentação dos campos e atributos

◆ MULTIPLE_UPLOAD_BUTTON_STYLE

const MULTIPLE_UPLOAD_BUTTON_STYLE = 'mFileFieldMultipleButton'

CSS class for add and remove buttons.

◆ UPLOAD_ERRORS

const UPLOAD_ERRORS = 'uploadErrors'

Errors JSON id.

◆ UPLOAD_INFO

const UPLOAD_INFO = 'uploadInfo'

Dojo textarea id for upload information.


A documentação para esta classe foi gerada a partir dos seguintes ficheiros: