A melhor parceira de TI para o seu negócio English version

API Reference

Pacote: widget / Subpacote: form

 Class TEntry

Description

Implements interfaces:

Entry Widget

Located in /widget/form/TEntry.php (line 22)

TField
   |
    --TEntry
Direct descendents
Class Description
 class TDateTime DatTimePicker Widget
 class TColor Color Widget
 class TIcon Color Widget
 class TSeekButton Record Lookup Widget: Creates a lookup field used to search values from associated entities
 class TDate DatePicker Widget
 class TDBEntry Database Entry Widget
Variable Summary
 mixed $formName
 mixed $id
 mixed $name
 mixed $value
Method Summary
 __construct ($name $name) TEntry
 forceLowerCase () void
 forceUpperCase () void
 getPostData () void
 setCompletion ($options $options) void
 setExitAction ( $action) void
 setMask ($mask $mask) void
 setMaxLength ($length $length) void
 setNumericMask ($decimals $decimals, $decimalsSeparator $decimalsSeparator, $thousandSeparator $thousandSeparator, [ $replaceOnPost = FALSE]) void
 setValue ($value $value) void
 show () void
Variables
mixed $formName (line 33)
  • access: protected

Redefinition of:
TField::$formName

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

Redefinition of:
TField::$id

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

Redefinition of:
TField::$name

Redefined in descendants as:
mixed $value (line 35)
  • access: protected

Redefinition of:
TField::$value

Redefined in descendants as:

Inherited Variables

Inherited from TField

TField::$editable
TField::$label
TField::$size
TField::$tag
Methods
Constructor __construct (line 41)

Class Constructor

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

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
forceLowerCase (line 164)

Force lower case

  • access: public
void forceLowerCase ()
forceUpperCase (line 176)

Force upper case

  • access: public
void forceUpperCase ()
getPostData (line 99)

Return the post data

  • access: public
void getPostData ()

Redefinition of:
TField::getPostData()
Return the post data

Redefined in descendants as:
setCompletion (line 139)

Define options for completion

void setCompletion ($options $options)
  • $options $options: array of options for completion
setExitAction (line 148)

Define the action to be executed when the user leaves the form field

void setExitAction ( $action)
  • $action $action: TAction object
setMask (line 53)

Define the field's mask

  • access: public
void setMask ($mask $mask)
  • $mask $mask: A mask for input data

Redefined in descendants as:
setMaxLength (line 127)

Define max length

  • access: public
void setMaxLength ($length $length)
  • $length $length: Max length
setNumericMask (line 64)

Define the field's numeric mask (available just in web)

  • access: public
void setNumericMask ($decimals $decimals, $decimalsSeparator $decimalsSeparator, $thousandSeparator $thousandSeparator, [ $replaceOnPost = FALSE])
  • $decimals $decimals: Sets the number of decimal points.
  • $decimalsSeparator $decimalsSeparator: Sets the separator for the decimal point.
  • $thousandSeparator $thousandSeparator: Sets the thousands separator.
  • $replaceOnPost
setValue (line 77)

Define the field's value

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

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

Implementation of:
AdiantiWidgetInterface::setValue()

Redefined in descendants as:
show (line 187)

Shows the widget at the screen

  • access: public
void show ()

Implementation of:
AdiantiWidgetInterface::show()

Redefined in descendants as:

Inherited Methods

Inherited From TField

 TField::__construct()
 TField::addValidation()
 TField::clearField()
 TField::disableField()
 TField::enableField()
 TField::getContents()
 TField::getEditable()
 TField::getId()
 TField::getLabel()
 TField::getName()
 TField::getPostData()
 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::validate()
 TField::__call()
 TField::__clone()
 TField::__get()
 TField::__set()