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 TAction

Description

Structure to encapsulate an action

Located in /control/TAction.php (line 18)


	
			
Direct descendents
Class Description
TDataGridAction Represents an action inside a datagrid
Variable Summary
mixed $action
mixed $param
mixed $properties
Method Summary
__construct ($action, [$parameters = null])
getParameter ($param)
getProperty ($property)
prepare ($object)
serialize ([$format_action = TRUE])
setParameter ($param, $value)
setParameters ($parameters)
setProperty ($property, $value)
Variables
mixed $action (line 20)
  • access: protected
mixed $param (line 21)
  • access: protected
mixed $properties (line 22)
  • access: protected
Methods
Constructor __construct (line 29)

Class Constructor

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

Redefined in descendants as:
getAction (line 143)

Returns the current calback

  • access: public
getAction ()
getFieldParameters (line 53)

Return fields used in parameters

  • access: public
getFieldParameters ()
getParameter (line 123)

Returns a parameter

  • access: public
getParameter ($param)
  • $param: = parameter name
getParameters (line 135)

Return the Action Parameters

  • access: public
getParameters ()
getProperty (line 159)

Get property

  • access: public
getProperty ($property)
  • $property
isStatic (line 331)

Returns if the action is static

  • access: public
isStatic ()
prepare (line 168)

Prepare action for use over an object

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

Redefined in descendants as:
serialize (line 245)

Converts the action into an URL

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

Redefined in descendants as:
setParameter (line 100)

Adds a parameter to the action

  • access: public
setParameter ($param, $value)
  • $param: = parameter name
  • $value: = parameter value
setParameters (line 109)

Set the parameters for the action

  • access: public
setParameters ($parameters)
  • $parameters: = array of parameters
setProperty (line 151)

Set property

  • access: public
setProperty ($property, $value)
  • $property
  • $value
toString (line 74)

Returns the action as a string

  • access: public
toString ()
validate (line 311)

Validate action

  • access: public
validate ()