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 TDateTime

Description

Implements interfaces:

DateTimePicker Widget

Located in /widget/form/TDateTime.php (line 24)

TField
   |
   --TEntry
      |
      --TDateTime
Variable Summary
mixed $id
mixed $options
mixed $size
mixed $value
Method Summary
static convertToMask ($value, $fromMask, $toMask)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
__construct ($name)
setChangeAction ($action)
setChangeFunction ($function)
setDatabaseMask ($mask)
setExitAction ($action)
setMask ($mask, [$replaceOnPost = FALSE])
setOption ($option, $value)
setValue ($value)
show ()
Variables
mixed $changeAction (line 34)
  • access: protected
mixed $changeFunction (line 33)
  • access: protected
mixed $id (line 28)
  • access: protected

Redefinition of:
TEntry::$id
mixed $options (line 31)
  • access: protected
mixed $replaceOnPost (line 32)
  • access: protected

Redefinition of:
TEntry::$replaceOnPost
mixed $size (line 29)
  • access: protected

Redefinition of:
TField::$size
mixed $value (line 30)
  • access: protected

Redefinition of:
TEntry::$value

Inherited Variables

Inherited from TEntry

TEntry::$allowNegative
TEntry::$completion
TEntry::$decimals
TEntry::$decimalsSeparator
TEntry::$delimiter
TEntry::$exitAction
TEntry::$exitFunction
TEntry::$exitOnEnterOn
TEntry::$formName
TEntry::$innerIcon
TEntry::$minLength
TEntry::$name
TEntry::$numericMask
TEntry::$reverse
TEntry::$thousandSeparator

Inherited from TField

TField::$editable
TField::$label
TField::$properties
TField::$tag
TField::$valueCallback
Methods
static convertToMask (line 100)

Convert from one mask to another

  • access: public
static convertToMask ($value, $fromMask, $toMask)
  • $value: original date
  • $fromMask: source mask
  • $toMask: target mask
static disableField (line 214)

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

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

Class Constructor

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

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

Return the post data

  • access: public
getPostData ()

Redefinition of:
TEntry::getPostData()
Return the post data
setChangeAction (line 149)

Define the action to be executed when the user changes the field

  • access: public
setChangeAction ($action)
  • $action: TAction object
setChangeFunction (line 131)

Set change function

  • access: public
setChangeFunction ($function)
  • $function
setDatabaseMask (line 185)

Set the mask to be used to colect the data

  • access: public
setDatabaseMask ($mask)
  • $mask
setExitAction (line 140)

Define the action to be executed when the user changes the field

  • access: public
setExitAction ($action)
  • $action: TAction object

Redefinition of:
TEntry::setExitAction()
Define the action to be executed when the user leaves the form field
setMask (line 166)

Define the field's mask

  • access: public
setMask ($mask, [$replaceOnPost = FALSE])
  • $mask: Mask for the field (dd-mm-yyyy)
  • $replaceOnPost

Redefinition of:
TEntry::setMask()
Define the field's mask
setOption (line 194)

Set extra datepicker options

setOption ($option, $value)
  • $option
  • $value
setValue (line 64)

Store the value inside the object

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

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

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

Shows the widget at the screen

  • access: public
show ()

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

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TEntry

TEntry::__construct()
TEntry::changeMask()
TEntry::exitOnEnter()
TEntry::forceLowerCase()
TEntry::forceUpperCase()
TEntry::formatMask()
TEntry::getPostData()
TEntry::reloadCompletion()
TEntry::setCompletion()
TEntry::setDelimiter()
TEntry::setExitAction()
TEntry::setExitFunction()
TEntry::setInnerIcon()
TEntry::setInputType()
TEntry::setMask()
TEntry::setMaxLength()
TEntry::setMinLength()
TEntry::setNumericMask()
TEntry::setValue()
TEntry::show()

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