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 TDataGridAction

Description

Represents an action inside a datagrid

Located in /widget/datagrid/TDataGridAction.php (line 18)

TAction
   |
   --TDataGridAction
Method Summary
__construct ($action, [$parameters = null])
prepare ($object)
serialize ([$format_action = TRUE])
setButtonClass ($buttonClass)
setDisplayCondition ($displayCondition)
setField ($field)
setFields ($fields)
setImage ($image)
setLabel ($label)
setUseButton ($useButton)
Variables

Inherited Variables

Inherited from TAction

TAction::$action
TAction::$param
TAction::$properties
Methods
Constructor __construct (line 33)

Class Constructor

  • access: public
__construct ($action, [$parameters = null])
  • $action: Callback to be executed
  • $parameters: = array of parameters

Redefinition of:
TAction::__construct()
Class Constructor
fieldDefined (line 98)

Return if there at least one field defined

  • access: public
fieldDefined ()
getButtonClass (line 149)

Returns the buttonClass

  • access: public
getButtonClass ()
getDisplayCondition (line 183)

Returns the action display condition

  • access: public
getDisplayCondition ()
getField (line 81)

Returns the Active Record's property that

will be passed along with the action

  • access: public
getField ()
getFields (line 90)

Returns the Active Record's properties that

will be passed along with the action

  • access: public
getFields ()
getImage (line 115)

Returns the icon of the action

  • access: public
getImage ()
getLabel (line 132)

Returns the text label for the action

  • access: public
getLabel ()
getUseButton (line 166)

Returns if the action will use a regular button

  • access: public
getUseButton ()
prepare (line 192)

Prepare action for use over an object

  • access: public
prepare ($object)
  • $object: Data Object

Redefinition of:
TAction::prepare()
Prepare action for use over an object
serialize (line 225)

Converts the action into an URL

  • access: public
serialize ([$format_action = TRUE])
  • $format_action: = format action with document or javascript (ajax=no)

Redefinition of:
TAction::serialize()
Converts the action into an URL
setButtonClass (line 141)

define the buttonClass for the action

  • access: public
setButtonClass ($buttonClass)
  • $buttonClass: A string containing the button css class
setDisplayCondition (line 175)

Define a callback that must be valid to show the action

  • access: public
setDisplayCondition ($displayCondition)
  • $displayCondition: Action display condition
setField (line 47)

Define wich Active Record's property will be passed along with the action

  • access: public
setField ($field)
  • $field: Active Record's property
setFields (line 59)

Define wich Active Record's properties will be passed along with the action

  • access: public
setFields ($fields)
  • $fields: Active Record's property
setImage (line 107)

Define an icon for the action

  • access: public
setImage ($image)
  • $image: The Image path
setLabel (line 124)

define the label for the action

  • access: public
setLabel ($label)
  • $label: A string containing a text label
setUseButton (line 158)

define if the action will use a regular button

  • access: public
setUseButton ($useButton)
  • $useButton: A boolean

Inherited Methods

Inherited From TAction

TAction::__construct()
TAction::getAction()
TAction::getFieldParameters()
TAction::getParameter()
TAction::getParameters()
TAction::getProperty()
TAction::isStatic()
TAction::prepare()
TAction::serialize()
TAction::setParameter()
TAction::setParameters()
TAction::setProperty()
TAction::toString()
TAction::validate()