\QuickApps\AspectFormHelperAspect

Intercepts FormHelper methods to add name prefixes.

Summary

Methods
Properties
Constants
addInputPrefix()
getProperty()
setProperty()
No public properties found
No constants found
_fieldName()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

addInputPrefix()

addInputPrefix(\Go\Aop\Intercept\MethodInvocation $invocation) : boolean

Adds prefix to every input element that may have a "name" attribute.

Parameters

\Go\Aop\Intercept\MethodInvocation $invocation

Invocation

Returns

boolean —

Whether object invocation should proceed or not

getProperty()

getProperty(object $object, string $name) : mixed

Get property value from the given object, regardless its visibility.

Parameters

object $object

The object

string $name

Name of the property to get

Returns

mixed —

Property value

setProperty()

setProperty(object $object, string $propertyName, mixed $value) : void

Sets property value of the given object, regardless its visibility.

Parameters

object $object

The object

string $propertyName

Name of the property to set

mixed $value

The new value

_fieldName()

_fieldName(\QuickApps\View\Helper\FormHelper $helper, string $name) : string

Add prefix to field name if a prefix was set using FormHelper::prefix().

Parameters

\QuickApps\View\Helper\FormHelper $helper

Field helper instance

string $name

Field name

Returns

string —

Prefixed field name