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

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)
setDatabaseMask ($mask)
setMask ($mask, [$replaceOnPost = FALSE])
setOption ($option, $value)
setValue ($value)
show ()
Variables
mixed $id (line 25)
  • access: protected

Redefinition of:
TEntry::$id
mixed $options (line 28)
  • access: protected
mixed $replaceOnPost (line 29)
  • access: protected

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

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

Redefinition of:
TEntry::$value

Inherited Variables

Inherited from TEntry

TEntry::$completion
TEntry::$decimals
TEntry::$decimalsSeparator
TEntry::$exitAction
TEntry::$exitFunction
TEntry::$formName
TEntry::$name
TEntry::$numericMask
TEntry::$thousandSeparator

Inherited from TField

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

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

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

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

Class Constructor

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

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

Return the post data

  • access: public
getPostData ()

Redefinition of:
TEntry::getPostData()
Return the post data
setDatabaseMask (line 136)

Set the mask to be used to colect the data

  • access: public
setDatabaseMask ($mask)
  • $mask
setMask (line 118)

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

Set extra datepicker options (ex: autoclose, startDate, daysOfWeekDisabled, datesDisabled)

  • access: public
setOption ($option, $value)
  • $option
  • $value
setValue (line 59)

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

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::forceLowerCase()
TEntry::forceUpperCase()
TEntry::formatMask()
TEntry::getPostData()
TEntry::reloadCompletion()
TEntry::setCompletion()
TEntry::setExitAction()
TEntry::setExitFunction()
TEntry::setInputType()
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::getFormName()
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()