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 TDate

Description

Implements interfaces:

DatePicker Widget

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

TField
   |
   --TEntry
      |
      --TDate
Variable Summary
mixed $id
mixed $options
mixed $size
Method Summary
static convertToMask ($value, $fromMask, $toMask)
static date2br ($date)
static date2us ($date)
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 27)
  • access: protected
mixed $replaceOnPost (line 28)
  • access: protected

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

Redefinition of:
TField::$size

Inherited Variables

Inherited from TEntry

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

Inherited from TField

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

Convert from one mask to another

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

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

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

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

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

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

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

Class Constructor

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

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

Return the post data

  • access: public
getPostData ()

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

Set the mask to be used to colect the data

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

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

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

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

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

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