Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TFile

Description

Implements interfaces:

FileChooser widget

Located in /widget/form/TFile.php (line 27)

TField
   |
   --TFile
Variable Summary
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
enableImageGallery ([$width = null], [$height = 100])
enablePopover ([$title = null], [$content = ''])
setAllowedExtensions ($extensions)
setCompleteAction ($action)
setDisplayMode ($mode)
setErrorAction ($action)
setHeight ($height)
setPlaceHolder ($widget)
setService ($service)
setSize ($width, [$height = NULL])
setValue ($value)
show ()
Variables
mixed $completeAction (line 31)
  • access: protected
mixed $displayMode (line 36)
  • access: protected
mixed $errorAction (line 32)
  • access: protected
mixed $extensions (line 35)
  • access: protected
mixed $fileHandling (line 38)
  • access: protected
mixed $galleryHeight (line 41)
  • access: protected
mixed $galleryWidth (line 40)
  • access: protected
mixed $height (line 30)
  • access: protected
mixed $id (line 29)
  • access: protected

Redefinition of:
TField::$id
mixed $imageGallery (line 39)
  • access: protected
mixed $placeHolder (line 34)
  • access: protected
mixed $popcontent (line 44)
  • access: protected
mixed $popover (line 42)
  • access: protected
mixed $poptitle (line 43)
  • access: protected
mixed $seed (line 37)
  • access: protected
mixed $uploaderClass (line 33)
  • access: protected

Inherited Variables

Inherited from TField

TField::$editable
TField::$formName
TField::$label
TField::$name
TField::$properties
TField::$size
TField::$tag
TField::$value
TField::$valueCallback
Methods
static clearField (line 372)

Clear the field

  • access: public
static clearField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::clearField()
Clear the field
static disableField (line 362)

Disable the field

  • access: public
static disableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::disableField()
Disable the field
static enableField (line 352)

Enable the field

  • access: public
static enableField ($form_name, $field)
  • $form_name: Form name
  • $field: Field name

Redefinition of:
TField::enableField()
Enable the field
Constructor __construct (line 50)

Constructor method

  • access: public
__construct ($name)
  • $name: input name

Redefinition of:
TField::__construct()
Class Constructor
enableFileHandling (line 115)

Define to file handling

  • access: public
enableFileHandling ()
enableImageGallery (line 68)

Enable image gallery view

  • access: public
enableImageGallery ([$width = null], [$height = 100])
  • $width
  • $height
enablePopover (line 80)

Enable popover

  • access: public
enablePopover ([$title = null], [$content = ''])
  • $title: Title
  • $content: Content
getPostData (line 147)

Return the post data

  • access: public
getPostData ()

Redefinition of:
TField::getPostData()
Return the post data
setAllowedExtensions (line 106)

Define the allowed extensions

  • access: public
setAllowedExtensions ($extensions)
  • $extensions
setCompleteAction (line 317)

Define the action to be executed when upload is finished

setCompleteAction ($action)
  • $action: TAction object
setDisplayMode (line 90)

Define the display mode {file}

  • access: public
setDisplayMode ($mode)
  • $mode
setErrorAction (line 334)

Define the action to be executed when some error occurs

setErrorAction ($action)
  • $action: TAction object
setHeight (line 139)

Set field height

  • access: public
setHeight ($height)
  • $height
setPlaceHolder (line 123)

Set place holder

  • access: public
setPlaceHolder ($widget)
  • $widget
setService (line 98)

Define the service class for response

  • access: public
setService ($service)
  • $service
setSize (line 131)

Set field size

  • access: public
setSize ($width, [$height = NULL])
  • $width
  • $height

Redefinition of:
TField::setSize()
Define the Field's width
setValue (line 160)

Set field value

  • access: public
setValue ($value)
  • $value

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
show (line 196)

Show the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TField

TField::__construct()
TField::addValidation()
TField::clearField()
TField::disableField()
TField::enableField()
TField::getContents()
TField::getEditable()
TField::getFormName()
TField::getId()
TField::getLabel()
TField::getName()
TField::getPostData()
TField::getPropertiesAsString()
TField::getProperty()
TField::getSize()
TField::getValidations()
TField::getValue()
TField::isRequired()
TField::setEditable()
TField::setFormName()
TField::setId()
TField::setLabel()
TField::setName()
TField::setProperty()
TField::setSize()
TField::setTip()
TField::setValue()
TField::setValueCallback()
TField::validate()
TField::__call()
TField::__clone()
TField::__get()
TField::__isset()
TField::__set()
TField::__toString()