Свойство | Тип | Описание | |
---|---|---|---|
$helper | string | Use formHidden view helper by default |
Свойство | Тип | Описание | |
---|---|---|---|
$_hash | mixed | Actual hash used. | |
$_salt | string | Salt for CSRF token | |
$_session | Zend_Session_Namespace | ||
$_timeout | integer | TTL for CSRF token |
Метод | Описание | |
---|---|---|
__construct ( string | array | Zend_Config $spec, array | Zend_Config $options = null ) : void | Constructor | |
getHash ( ) : string | Retrieve CSRF token | |
getLabel ( ) : null | Override getLabel() to always be empty | |
getSalt ( ) : string | Retrieve salt for CSRF token | |
getSession ( ) : Zend_Session_Namespace | Get session object | |
getSessionName ( ) : string | Get session namespace for CSRF token | |
getTimeout ( ) : integer | Get CSRF session token timeout | |
initCsrfToken ( ) : void | Initialize CSRF token in session | |
initCsrfValidator ( ) : Zend_Form_Element_Hash | Initialize CSRF validator | |
render ( Zend_View_Interface $view = null ) : string | Render CSRF token in form | |
setSalt ( string $salt ) : Zend_Form_Element_Hash | Salt for CSRF token | |
setSession ( Zend_Session_Namespace $session ) : Zend_Form_Element_Hash | Set session object | |
setTimeout ( integer $ttl ) : Zend_Form_Element_Hash | Set timeout for CSRF session token |
Метод | Описание | |
---|---|---|
_generateHash ( ) : void | Generate CSRF token |
protected _generateHash ( ) : void | ||
Результат | void |
public getSession ( ) : Zend_Session_Namespace | ||
Результат | Zend_Session_Namespace |
public getSessionName ( ) : string | ||
Результат | string |
public getTimeout ( ) : integer | ||
Результат | integer |
public initCsrfToken ( ) : void | ||
Результат | void |
public initCsrfValidator ( ) : Zend_Form_Element_Hash | ||
Результат | Zend_Form_Element_Hash |
public setSession ( Zend_Session_Namespace $session ) : Zend_Form_Element_Hash | ||
$session | Zend_Session_Namespace | |
Результат | Zend_Form_Element_Hash |
public setTimeout ( integer $ttl ) : Zend_Form_Element_Hash | ||
$ttl | integer | |
Результат | Zend_Form_Element_Hash |
protected Zend_Session_Namespace $_session | ||
Результат | Zend_Session_Namespace |
public string $helper | ||
Результат | string |