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 23)


	
			
Direct descendents
Class Description
TCombo ComboBox Widget
TComboCombined ComboBox Widget with an entry
TRadioButton RadioButton Widget
TSlider Slider Widget
TButton Button Widget
TSpinner Spinner Widget (also known as spin button)
TSelect Select Widget
TSortList A Sortable list
TMultiFile FileChooser widget
TLabel Label Widget
TText Text Widget (also known as Memo)
TEntry Entry Widget
THidden Hidden field
TCheckButton CheckButton widget
TRadioGroup A group of RadioButton's
TPassword Password Widget
TMultiField MultiField Widget: Takes a group of input fields and gives them the possibility to register many occurrences
THtmlEditor Html Editor
TCheckGroup A group of CheckButton's
TFile FileChooser widget
Variable Summary
mixed $editable
mixed $formName
mixed $id
mixed $label
mixed $name
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 ()
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)
__call ($method, $param)
__clone ()
__get ($name)
__set ($name, $value)
Variables
mixed $editable (line 29)
  • access: protected

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

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

Redefined in descendants as:
mixed $tag (line 30)
  • access: protected
Methods
static clearField (line 387)

Clear the field

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

Redefined in descendants as:
static disableField (line 377)

Disable the field

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

Redefined in descendants as:
static enableField (line 367)

Enable the field

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

Redefined in descendants as:
Constructor __construct (line 39)

Class Constructor

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

Redefined in descendants as:
addValidation (line 300)

Add a field validator

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

Returns the element content as a string

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

Returns if the field is editable

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

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

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

Returns the field's id

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

Returns the field's label

  • access: public
getLabel ()

Redefined in descendants as:
getName (line 140)

Returns the field's name

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

Return the post data

  • access: public
getPostData ()

Redefined in descendants as:
getProperty (line 272)

Return a field property

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

Redefined in descendants as:
getSize (line 289)

Returns the field size

  • access: public
getSize ()

Redefined in descendants as:
getValidations (line 308)

Returns field validations

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

Returns the field's value

  • access: public
getValue ()

Redefined in descendants as:
isRequired (line 316)

Returns if the field is required

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

Define if the field is editable

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

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

Redefined in descendants as:
setId (line 149)

Define the field's id

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

Define the field's label

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

Redefined in descendants as:
setName (line 132)

Define the field's name

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

Define a field property

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

Redefined in descendants as:
setSize (line 281)

Define the Field's width

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

Redefined in descendants as:
setTip (line 201)

Define the field's tooltip

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

Define the field's value

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

Redefined in descendants as:
validate (line 335)

Validate a field

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

Redirects function call

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

Clone the object

__clone ()

Redefined in descendants as:
__get (line 81)

Returns a property value

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

Redefined in descendants as:
__set (line 67)

Intercepts whenever someones assign a new property's value

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