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 TButton

Description

Implements interfaces:

Button Widget

Located in /widget/form/TButton.php (line 25)

TField
   |
   --TButton
Variable Summary
mixed $formName
mixed $label
mixed $properties
Method Summary
static create ($name, $callback, $label, $image)
static disableField ($form_name, $field)
static enableField ($form_name, $field)
addFunction ($function)
addStyleClass ($class)
getProperty ($name)
setAction ($action, [$label = NULL])
setImage ($image)
setLabel ($label)
setProperty ($name, $value, [$replace = TRUE])
setTagName ($name)
show ()
Variables
mixed $formName (line 33)
  • access: protected

Redefinition of:
TField::$formName
mixed $label (line 32)
  • access: protected

Redefinition of:
TField::$label
mixed $properties (line 31)
  • access: protected

Redefinition of:
TField::$properties

Inherited Variables

Inherited from TField

TField::$editable
TField::$id
TField::$name
TField::$size
TField::$tag
TField::$value
TField::$valueCallback
Methods
static create (line 38)

Create a button with icon and action

  • access: public
static create ($name, $callback, $label, $image)
  • $name
  • $callback
  • $label
  • $image
static disableField (line 165)

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

Enable the field

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

Redefinition of:
TField::enableField()
Enable the field
addFunction (line 124)

Add a JavaScript function to be executed by the button

  • access: public
addFunction ($function)
  • $function: A piece of JavaScript code
addStyleClass (line 49)

Add CSS class

  • access: public
addStyleClass ($class)
  • $class
getAction (line 79)

Returns the buttona action

  • access: public
getAction ()
getLabel (line 114)

Returns the button label

  • access: public
getLabel ()

Redefinition of:
TField::getLabel()
Returns the field's label
getProperty (line 145)

Return field property

  • access: public
getProperty ($name)
  • $name

Redefinition of:
TField::getProperty()
Return a field property
setAction (line 70)

Define the action of the button

  • access: public
setAction ($action, [$label = NULL])
  • $action: TAction object
  • $label: Button's label
setImage (line 97)

Define the icon of the button

  • access: public
setImage ($image)
  • $image: image path
setLabel (line 106)

Define the label of the button

  • access: public
setLabel ($label)
  • $label: button label

Redefinition of:
TField::setLabel()
Define the field's label
setProperty (line 137)

Define a field property

  • access: public
setProperty ($name, $value, [$replace = TRUE])
  • $name: Property Name
  • $value: Property Value
  • $replace

Redefinition of:
TField::setProperty()
Define a field property
setTagName (line 88)

Define the tag name

  • access: public
setTagName ($name)
  • $name: tag name
show (line 173)

Show the widget at the screen

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

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