Constants

LAYOUT_PRIORITY

LAYOUT_PRIORITY

ICON_PATH

ICON_PATH

FORM_RECORD_UID

FORM_RECORD_UID

FORM_RECORD_LAST_UPDATE

FORM_RECORD_LAST_UPDATE

Properties

$_record

$_record : \Fuman_Db_Record

Record of add action.

Type

\Fuman_Db_Record

$_editMode

$_editMode : boolean

Type

boolean

$_actionDescriptor

$_actionDescriptor : 

Type

$_app

$_app : string

Type

string

$_name

$_name : string

Type

string

$_className

$_className : string

Type

string

$_config

$_config : \stdClass

Type

\stdClass

Methods

init()

init() : void

Sets template path and adds information to active navigation item.

execute()

execute() : void

Executes the action.

setTable()

setTable(\Fuman_Table  $table) : void

Set table

Parameters

\Fuman_Table $table

getTable()

getTable() : \Fuman_Table

Get table

Returns

\Fuman_Table

getConfig()

getConfig() : null|\stdClass

Gets action configuration

Returns

null|\stdClass

getConfigValue()

getConfigValue(string  $key) : null|string

Gets value from config

Parameters

string $key

Returns

null|string

hasConfigValue()

hasConfigValue(string  $key) : string

Returns true when config value is set

Parameters

string $key

Returns

string

getConfigValueOrDefault()

getConfigValueOrDefault(string  $key, mixed|null  $default = null) : mixed

Returns a config value or default

Parameters

string $key
mixed|null $default

Returns

mixed

getTableActionIcon()

getTableActionIcon(\Fuman_Action_Descriptor  $actionDescriptor, \Fuman_Table  $table, \stdClass  $params = null) : \app_core_component_icon

Returns an icon component with uri to the parametrised action

Parameters

\Fuman_Action_Descriptor $actionDescriptor
\Fuman_Table $table
\stdClass $params

Returns

\app_core_component_icon

__construct()

__construct() 

Constructor

getActionDescriptor()

getActionDescriptor() : \Fuman_Action_Descriptor|null

Gets action descriptor

Returns

\Fuman_Action_Descriptor|null

getApp()

getApp() : string

Returns app string

Returns

string

getName()

getName() : string

Returns action name

Returns

string

getClassName()

getClassName() : string

Gets class name

Returns

string

returnToCallerUri()

returnToCallerUri(boolean  $reroute = false) : null|void

Parses caller and returns it or reroutes to it, depends o first argument

Parameters

boolean $reroute

Returns

null|void

acceptsHttpAuth()

acceptsHttpAuth() : boolean

Does the action accepts Http authentication (Fuman_Auth_Http_Basic)

Returns

boolean

requiresDatabaseConnection()

requiresDatabaseConnection() : boolean

Does action require database access

Returns

boolean

requiresInstalledApplication()

requiresInstalledApplication() : boolean

Does action require an installed application

Returns

boolean

isDaemon()

isDaemon() : boolean

Daemon actions wont affect session last update

Returns

boolean

isAccessValid()

isAccessValid() : integer

Checks if Access to Action is valid

Returns

integer

getRecord()

getRecord() : \Fuman_Db_Record

Returns record.

Returns

\Fuman_Db_Record

setRecord()

setRecord(\Fuman_Db_Record  $record) : void

Set record.

Parameters

\Fuman_Db_Record $record

_addLocalStorageElements()

_addLocalStorageElements() 

_handleLock()

_handleLock() : boolean

Handle lock

Returns

boolean

_handleRequest()

_handleRequest() : void

Handles Request

_handleTranslations()

_handleTranslations() 

Handle translations

_handleSuccess()

_handleSuccess() 

Handle success

_handleError()

_handleError() 

Handle error

_getTemplatePath()

_getTemplatePath() : string

Returns path to template.

Returns

string

_getRequiredParams()

_getRequiredParams() : array

List of params which have to be set on request.

Returns

array

_isAccessToActionValid()

_isAccessToActionValid() : integer

Checks if access to Fuman_Action_Abstract is valid

Returns

integer

_isAccessToTableValid()

_isAccessToTableValid() : integer

Checks if access to Fuman_Action_Table_Interface is valid

Returns

integer

_isAccessToInputTypeValid()

_isAccessToInputTypeValid() : integer

Checks if access to Fuman_Action_Record_Interface is valid

Returns

integer

_isAccessToRecordValid()

_isAccessToRecordValid() : integer

Checks if access to Fuman_Action_Record_Interface is valid

Returns

integer

_getAclTableActionName()

_getAclTableActionName() : string

Gets the action name for the acl table subset (default: get_class($this))

Returns

string

_isProtectionHashValid()

_isProtectionHashValid(string  $appName, string  $actionName, \Fuman_Table  $table, string  $id) : boolean

Check protection hash

Parameters

string $appName
string $actionName
\Fuman_Table $table
string $id

Returns

boolean

_addHeadComponent()

_addHeadComponent() 

Add head component