Class Helpers
public static
|
|
public static
|
|
public static
|
#
GetControllerView(
Get view object from controller object by local configuration. |
public static
array
|
|
public static
array
|
#
GetSessionCsrf( string $formId = '' )
Get form cross site request forgery protecting hashes as array by form id. |
public static
array
|
#
GetSessionErrors( string $formId = '' )
Get form error messages by form id, if there are any keys in array, keys are representing form field names. If there are no keys, messages have common meaning for whole form. |
public static
|
#
SetSessionData( string $formId = '', array $data = array() )
Set form default values by form id into session. |
public static
|
#
SetSessionCsrf( string $formId = '', array $csrf = array() )
Set form cross site request forgery values by form id into session. |
public static
|
#
SetSessionErrors( string $formId = '', array $errors = array() )
Set form error messages by form id into session. |
protected static
&
|
|
protected static
&
|
|
protected static
&
|
|
protected static
&
|
|
protected static
&
|
integer |
CTRL_VIEW_PROVIDER_METHOD
|
#
0
|
integer |
CTRL_VIEW_PROVIDER_PROPERTY
|
#
1
|
integer |
SESSION_PROVIDER_INSTANCE
|
#
0
|
integer |
SESSION_PROVIDER_STATIC
|
#
1
|
public static
array
|
$ControllerViewProvider
Cofiguration how to get view object from controller object |
#
array(
'type' => self::CTRL_VIEW_PROVIDER_METHOD,
'getter' => 'GetView',
)
|
public static
array
|
$SessionProvider
Basic $_SESSION array as session service configuration. |
#
array(
'type' => self::SESSION_PROVIDER_STATIC,
'callable' => array(__CLASS__, 'getSimpleSessionRecord'),
'expirator' => '',
'expiration'=> 0,
)
|
protected static
stdClass
|
$sessionData
Forms default values storage. |
#
NULL
|
protected static
stdClass
|
$sessionCsrf
Forms cross site request forgery protecting hashes storage. |
#
NULL
|
protected static
stdClass
|
$sessionErrors
Forms error messages storage. |
#
NULL
|
protected static
array
|
$sessionProviders
Session services configurations by existing classes as keys |
#
array(
'\MvcCore\Session' => array(
'type' => self::SESSION_PROVIDER_STATIC,
'callable' => array('\MvcCore\Session', 'GetNamespace'),
'expirator' => 'SetExpirationSeconds',
'expiration' => 32872500, // (60 * 60 * 24 * 365.25) -> year
),
'Zend_Session' => array(
'type' => self::SESSION_PROVIDER_INSTANCE,
'class' => 'Zend_Session_Namespace',
'expirator' => 'setExpirationSeconds',
'expiration' => 32872500, // (60 * 60 * 24 * 365.25) -> year
),
)
|