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
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
fieldDefined (line 83)

Return if there at least one field defined

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

Returns the buttonClass

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

Returns the action display condition

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

Returns the Active Record's property that

will be passed along with the action

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

Returns the Active Record's properties that

will be passed along with the action

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

Returns the icon of the action

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

Returns the text label for the action

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

Returns if the action will use a regular button

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

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

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

define the buttonClass for the action

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

Define a callback that must be valid to show the action

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

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

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

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

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

Define an icon for the action

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

define the label for the action

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

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::getParameter()
TAction::getParameters()
TAction::getProperty()
TAction::isStatic()
TAction::prepare()
TAction::serialize()
TAction::setParameter()
TAction::setParameters()
TAction::setProperty()
TAction::toString()