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 TField

Description

Base class to construct all the widgets

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


	
			
Direct descendents
Class Description
TSelect Select Widget
TFile FileChooser widget
TCheckGroup A group of CheckButton's
TPassword Password Widget
TSlider Slider Widget
TSpinner Spinner Widget (also known as spin button)
THtmlEditor Html Editor
TMultiFile FileChooser widget
TLabel Label Widget
TText Text Widget (also known as Memo)
TRadioGroup A group of RadioButton's
TImageCropper Image uploader with cropper
TCheckButton CheckButton widget
TSortList A Sortable list
THidden Hidden field
TButton Button Widget
TEntry Entry Widget
TCombo ComboBox Widget
TRadioButton RadioButton Widget
Variable Summary
mixed $editable
mixed $formName
mixed $id
mixed $label
mixed $name
mixed $properties
mixed $size
mixed $tag
mixed $value
Method Summary
static clearField ($form_name, $field)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
addValidation ($label, $validator, [$parameters = NULL])
getId ()
getName ()
getPropertiesAsString ([$filter = null])
getProperty ($name, 1)
getSize ()
setEditable ($editable)
setFormName ($name)
setId ($id)
setLabel ($label)
setName ($name)
setProperty ($name, $value, [$replace = TRUE])
setSize ($width, [$height = NULL])
setTip ($tip)
setValue ($value)
setValueCallback ($callback)
__call ($method, $param)
__clone ()
__get ($name)
__isset ($name)
__set ($name, $value)
Variables
mixed $editable (line 33)
  • access: protected

Redefined in descendants as:
mixed $label (line 36)
  • access: protected

Redefined in descendants as:
mixed $name (line 30)
  • access: protected

Redefined in descendants as:
mixed $properties (line 37)
  • access: protected

Redefined in descendants as:
mixed $tag (line 34)
  • access: protected
mixed $valueCallback (line 38)
  • access: protected
Methods
static clearField (line 469)

Clear the field

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

Redefined in descendants as:
static disableField (line 459)

Disable the field

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

Redefined in descendants as:
static enableField (line 449)

Enable the field

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

Redefined in descendants as:
Constructor __construct (line 45)

Class Constructor

  • access: public
__construct ($name)
  • $name: name of the field

Redefined in descendants as:
addValidation (line 354)

Add a field validator

  • access: public
addValidation ($label, $validator, [$parameters = NULL])
  • $label: Field name
  • $validator: TFieldValidator object
  • $parameters: Aditional parameters
getContents (line 435)

Returns the element content as a string

  • access: public
getContents ()
getEditable (line 264)

Returns if the field is editable

  • return: boolean
  • access: public
getEditable ()
getFormName (line 222)

Return the name of the form to wich the field is attached

  • access: public
getFormName ()
getId (line 181)

Returns the field's id

  • access: public
getId ()
getLabel (line 147)

Returns the field's label

  • access: public
getLabel ()

Redefined in descendants as:
getName (line 164)

Returns the field's name

  • access: public
getName ()
getPostData (line 239)

Return the post data

  • access: public
getPostData ()

Redefined in descendants as:
getPropertiesAsString (line 302)

Get properties as string

  • access: public
getPropertiesAsString ([$filter = null])
  • $filter
getProperty (line 326)

Return a field property

  • access: public
getProperty ($name, 1)
  • 1: Property Value
  • $name: Property Name

Redefined in descendants as:
getSize (line 343)

Returns the field size

  • access: public
getSize ()

Redefined in descendants as:
getValidations (line 382)

Returns field validations

  • access: public
getValidations ()
getValue (line 204)

Returns the field's value

  • access: public
getValue ()

Redefined in descendants as:
isRequired (line 390)

Returns if the field is required

  • access: public
isRequired ()
setEditable (line 255)

Define if the field is editable

  • access: public
setEditable ($editable)
  • $editable: A boolean
setFormName (line 214)

Define the name of the form to wich the field is attached

  • access: public
setFormName ($name)
  • $name: A string containing the name of the form
setId (line 173)

Define the field's id

  • access: public
setId ($id)
  • $id: A string containing the field's id
setLabel (line 139)

Define the field's label

  • access: public
setLabel ($label)
  • $label: A string containing the field's label

Redefined in descendants as:
setName (line 156)

Define the field's name

  • access: public
setName ($name)
  • $name: A string containing the field's name
setProperty (line 274)

Define a field property

  • access: public
setProperty ($name, $value, [$replace = TRUE])
  • $name: Property Name
  • $value: Property Value
  • $replace

Redefined in descendants as:
setSize (line 335)

Define the Field's width

  • access: public
setSize ($width, [$height = NULL])
  • $width: Field's width in pixels
  • $height

Redefined in descendants as:
setTip (line 231)

Define the field's tooltip

  • access: public
setTip ($tip)
  • $tip: A string containing the field's tooltip
setValue (line 190)

Define the field's value

  • access: public
setValue ($value)
  • $value: A string containing the field's value

Redefined in descendants as:
setValueCallback (line 130)

Set callback for setValue method

  • access: public
setValueCallback ($callback)
  • $callback
validate (line 409)

Validate a field

  • access: public
validate ()
__call (line 115)

Redirects function call

  • access: public
__call ($method, $param)
  • $method: Method name
  • $param: Array of parameters
__clone (line 105)

Clone the object

__clone ()

Redefined in descendants as:
__get (line 88)

Returns a property value

  • access: public
__get ($name)
  • $name: Property Name

Redefined in descendants as:
__isset (line 97)

Returns if the property is set

  • access: public
__isset ($name)
  • $name: Property Name
__set (line 74)

Intercepts whenever someones assign a new property's value

  • access: public
__set ($name, $value)
  • $name: Property Name
  • $value: Property Value
__toString (line 427)

Converts the object into a string

  • access: public
__toString ()