Documentation

ActionBuilder
in package

Table of Contents

$loadedActions  : array<string|int, mixed>
List of loaded actions
createActionFromJsonConfig()  : void
Method creates action from JSON config
createActionFromSettingsObject()  : void
Method creates action from settings object
constructOtherView()  : void
Constructing view
constructOverrideHandler()  : void
Overriding defined config
getActionBodyFromSettingsObject()  : array<string|int, mixed>
Method returns action body
getActionBuilderMethod()  : callable|null
Method returns fabric method for action processing
getLoadedActionByName()  : array<string|int, mixed>
Method returns list of
ignoreKey()  : callable
Ignore config key
loadRouteForApp()  : void
Method loads route for the application
resetLayout()  : callable
Method resets layout

Properties

$loadedActions

List of loaded actions

private static array<string|int, mixed> $loadedActions = []

Methods

createActionFromJsonConfig()

Method creates action from JSON config

public static createActionFromJsonConfig(CommonApplication $app, string $path) : void
Parameters
$app : CommonApplication
$path : string

path to JSON config

Return values
void

createActionFromSettingsObject()

Method creates action from settings object

public static createActionFromSettingsObject(CommonApplication $app, array<string|int, mixed> $settings[, string $method = '' ]) : void
Parameters
$app : CommonApplication

application object

$settings : array<string|int, mixed>

action settings

$method : string = ''

method name

Return values
void

constructOtherView()

Constructing view

private static constructOtherView(CommonApplication $app, array<string|int, mixed> &$result, string $key, mixed $value, array<string|int, mixed> &$views) : void
Parameters
$app : CommonApplication

application

$result : array<string|int, mixed>

compiled result

$key : string

config key

$value : mixed

config value

$views : array<string|int, mixed>

list of views

Return values
void

constructOverrideHandler()

Overriding defined config

private static constructOverrideHandler(array<string|int, mixed> &$config) : void
Parameters
$config : array<string|int, mixed>

config itself

Return values
void

getActionBodyFromSettingsObject()

Method returns action body

private static getActionBodyFromSettingsObject(CommonApplication $app, array<string|int, mixed> $settings) : array<string|int, mixed>
Parameters
$app : CommonApplication

application object

$settings : array<string|int, mixed>

settings object

Return values
array<string|int, mixed>

($result, $presenter)

getActionBuilderMethod()

Method returns fabric method for action processing

private static getActionBuilderMethod(CommonApplication $app, string $key, mixed $value) : callable|null
Parameters
$app : CommonApplication

application

$key : string

config key name

$value : mixed

config key value

Return values
callable|null

callback

getLoadedActionByName()

Method returns list of

private static getLoadedActionByName(string $name) : array<string|int, mixed>
Parameters
$name : string

action name

Return values
array<string|int, mixed>

action config

ignoreKey()

Ignore config key

private static ignoreKey() : callable
Return values
callable

factory method

resetLayout()

Method resets layout

private static resetLayout(HtmlTemplate $template, string $value) : callable
Parameters
$template : HtmlTemplate

template

$value : string

new layout

Return values
callable

factory method

Search results