Constants

LAYOUT_PRIORITY

LAYOUT_PRIORITY

ICON_PATH

ICON_PATH

KEY_VALID

KEY_VALID

KEY_ONLY_VALID_BY_SYNTAX

KEY_ONLY_VALID_BY_SYNTAX

KEY_EXPIRED

KEY_EXPIRED

KEY_INVALID

KEY_INVALID

EXTRA_PATH

EXTRA_PATH

Properties

$_actionDescriptor

$_actionDescriptor : 

Type

$_app

$_app : string

Type

string

$_name

$_name : string

Type

string

$_className

$_className : string

Type

string

$_config

$_config : \stdClass

Type

\stdClass

$_allPhpFiles

$_allPhpFiles : 

Type

$_allTemplateFiles

$_allTemplateFiles : 

Type

$_keysInSource

$_keysInSource : 

Type

$_translationKeys

$_translationKeys : 

Type

$_showInvalidOnly

$_showInvalidOnly : boolean

Type

boolean

Methods

__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

init()

init() : void

Initializes the action

execute()

execute() : void

Execute action

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

initFromRequest()

initFromRequest() 

Init record by request

getStatusContent()

getStatusContent(object  $stateObject) : array

Gets status content

Parameters

object $stateObject

Returns

array

validateKey()

validateKey(string  $key) : object

Validates a key based on validators

Parameters

string $key

Returns

object

createStatusObject()

createStatusObject(string  $status, string|null  $message = null, integer  $priority) : object

Creates status object

Parameters

string $status
string|null $message
integer $priority

Returns

object

_getTemplatePath()

_getTemplatePath() : string

Gets template path

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

_init()

_init() 

Collects and initializes all validators

_findKeyInSource()

_findKeyInSource(string  $key) : boolean

Find key in source

Parameters

string $key

Returns

boolean

_findKeyInTranslationKeys()

_findKeyInTranslationKeys(string  $key) : boolean

Find key in source

Parameters

string $key

Returns

boolean

_getCommentTranslationKeys()

_getCommentTranslationKeys(string  $file) : array

Gets key from comments (@translationKeys)

Parameters

string $file

Returns

array

_extractCommentTranslationKeys()

_extractCommentTranslationKeys(string  $file) : array

Extracts keys from comments (@translationKeys)

Parameters

string $file

Returns

array