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

Inherited Variables

Inherited from TField

TField::$editable
TField::$id
TField::$name
TField::$size
TField::$tag
TField::$value
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 154)

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

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

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

Returns the buttona action

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

Returns the button label

  • access: public
getLabel ()

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

Return field property

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

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

Define the action of the button

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

Define the icon of the button

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

Define the label of the button

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

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

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

Define the tag name

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

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