API Documentação da API
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TAction
in package

Structure to encapsulate an action

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$action  : mixed
$param  : mixed
$properties  : mixed

Methods

__construct()  : mixed
Class Constructor
cloneWithParameters()  : mixed
getAction()  : mixed
Returns the current calback
getFieldParameters()  : mixed
Return fields used in parameters
getParameter()  : mixed
Returns a parameter
getParameters()  : mixed
Return the Action Parameters
getProperty()  : mixed
Get property
isStatic()  : mixed
Returns if the action is static
prepare()  : mixed
Prepare action for use over an object
preserveRequestParameters()  : mixed
Keep REQUEST parameters
serialize()  : mixed
Converts the action into an URL
setParameter()  : mixed
Adds a parameter to the action
setParameters()  : mixed
Set the parameters for the action
setProperty()  : mixed
Set property
toString()  : mixed
Returns the action as a string
validate()  : mixed
Validate action
replace()  : mixed
Replace a string with object properties within {pattern}

Properties

$properties

protected mixed $properties

Methods

__construct()

Class Constructor

public __construct( $action[,  $parameters = null ]) : mixed
Parameters
$action :

Callback to be executed

$parameters : = null

= array of parameters

cloneWithParameters()

public cloneWithParameters([mixed $parameters = [] ]) : mixed
Parameters
$parameters : mixed = []

getAction()

Returns the current calback

public getAction() : mixed

getFieldParameters()

Return fields used in parameters

public getFieldParameters() : mixed

getParameter()

Returns a parameter

public getParameter( $param) : mixed
Parameters
$param :

= parameter name

getParameters()

Return the Action Parameters

public getParameters() : mixed

getProperty()

Get property

public getProperty(mixed $property) : mixed
Parameters
$property : mixed

isStatic()

Returns if the action is static

public isStatic() : mixed

prepare()

Prepare action for use over an object

public prepare( $object) : mixed
Parameters
$object :

Data Object

preserveRequestParameters()

Keep REQUEST parameters

public preserveRequestParameters([mixed $request_parameters = [] ]) : mixed
Parameters
$request_parameters : mixed = []

serialize()

Converts the action into an URL

public serialize([ $format_action = TRUE ][, mixed $check_permission = FALSE ]) : mixed
Parameters
$format_action : = TRUE

= format action with document or javascript (ajax=no)

$check_permission : mixed = FALSE

setParameter()

Adds a parameter to the action

public setParameter( $param,  $value) : mixed
Parameters
$param :

= parameter name

$value :

= parameter value

setParameters()

Set the parameters for the action

public setParameters( $parameters) : mixed
Parameters
$parameters :

= array of parameters

setProperty()

Set property

public setProperty(mixed $property, mixed $value) : mixed
Parameters
$property : mixed
$value : mixed

toString()

Returns the action as a string

public toString() : mixed

validate()

Validate action

public validate() : mixed

replace()

Replace a string with object properties within {pattern}

private replace( $content,  $object) : mixed
Parameters
$content :

String with pattern

$object :

Any object


        
On this page

Search results