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

API Reference

Pacote: widget / Subpacote: form

 Class TDate

Description

Implements interfaces:

DatePicker Widget

Located in /widget/form/TDate.php (line 21)

TField
   |
    --TEntry
      |
       --TDate
Variable Summary
 mixed $id
 mixed $size
Method Summary
 static convertToMask ($value $value, $fromMask $fromMask, $toMask $toMask) void
 static date2br ($date $date) void
 static date2us ($date $date) void
 static disableField ($form_name $form_name, $field $field) void
 static enableField ($form_name $form_name, $field $field) void
 __construct ($name $name) TDate
 getPostData () void
 setDatabaseMask ( $mask) void
 setMask ($mask $mask) void
 setValue ( $value) void
 show () void
Variables
mixed $id (line 25)
  • access: protected

Redefinition of:
TEntry::$id
mixed $size (line 26)
  • access: protected

Redefinition of:
TField::$size

Inherited Variables

Inherited from TEntry

TEntry::$formName
TEntry::$name
TEntry::$value

Inherited from TField

TField::$editable
TField::$label
TField::$tag
Methods
static convertToMask (line 84)

Convert from one mask to another

  • access: public
void convertToMask ($value $value, $fromMask $fromMask, $toMask $toMask)
  • $value $value: original date
  • $fromMask $fromMask: source mask
  • $toMask $toMask: target mask
static date2br (line 143)

Shortcut to convert a date to format dd/mm/yyyy

  • access: public
void date2br ($date $date)
  • $date $date: = date in format yyyy-mm-dd
static date2us (line 127)

Shortcut to convert a date to format yyyy-mm-dd

  • access: public
void date2us ($date $date)
  • $date $date: = date in format dd/mm/yyyy
static disableField (line 170)

Disable the field

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

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

Enable the field

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

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

Class Constructor

  • access: public
TDate __construct ($name $name)
  • $name $name: Name of the widget

Redefinition of:
TEntry::__construct()
Class Constructor
getPostData (line 64)

Return the post data

  • access: public
void getPostData ()

Redefinition of:
TEntry::getPostData()
Return the post data
setDatabaseMask (line 118)
  • access: public
void setDatabaseMask ( $mask)
  • $mask
setMask (line 105)

Define the field's mask

  • access: public
void setMask ($mask $mask)
  • $mask $mask: Mask for the field (dd-mm-yyyy)

Redefinition of:
TEntry::setMask()
Define the field's mask
setValue (line 49)

Store the value inside the object

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

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

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

Shows the widget at the screen

  • access: public
void show ()

Redefinition of:
TEntry::show()
Shows the widget at the screen

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TEntry

 TEntry::__construct()
 TEntry::forceLowerCase()
 TEntry::forceUpperCase()
 TEntry::getPostData()
 TEntry::setCompletion()
 TEntry::setExitAction()
 TEntry::setMask()
 TEntry::setMaxLength()
 TEntry::setNumericMask()
 TEntry::setValue()
 TEntry::show()

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