Properties

$context

$context : object

The context object

Type

object

$viewDir

$viewDir : 

Type

$viewTplDir

$viewTplDir : 

Type

$viewTplAutoCompile

$viewTplAutoCompile : 

Type

$data

$data : 

Type

$dtds

$dtds : array

The dtd config for validator

Type

array

$acl

$acl : array

The Access Control List

Type

array

$roles

$roles : array

The current user's roles

Type

array

$constructed

$constructed : boolean

A flag to indicate if subclass call LtAction::__construct()

Type

boolean

$responseType

$responseType : string

The response type

Type

string

$code

$code : 

Result properties

Type

$message

$message : 

Type

$view

$view : 

Type

$layout

$layout : 

Type

Methods

__construct()

__construct() 

The constructor function, initialize the URI property

executeChain()

executeChain() 

afterConstruct()

afterConstruct() 

Do something after subClass::__construct().

validateInput()

validateInput() : array

Validate the data from client

Returns

array

checkPrivilege()

checkPrivilege() : \boolen

Check if current user have privilege to do this

Returns

\boolen

beforeExecute()

beforeExecute() 

Do something before subClass::execute().

execute()

execute() 

writeResponse()

writeResponse()