Property | Type | Description | |
---|---|---|---|
$helper | string | Use formHidden view helper by default |
Property | Type | Description | |
---|---|---|---|
$_hash | mixed | Actual hash used. | |
$_salt | string | Salt for CSRF token | |
$_session | Zend_Session_Namespace | ||
$_timeout | integer | TTL for CSRF token |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_generateHash ( ) : void | Generate CSRF token |
protected _generateHash ( ) : void | ||
return | void |
public getSession ( ) : Zend_Session_Namespace | ||
return | Zend_Session_Namespace |
public getSessionName ( ) : string | ||
return | string |
public getTimeout ( ) : integer | ||
return | integer |
public initCsrfToken ( ) : void | ||
return | void |
public initCsrfValidator ( ) : Zend_Form_Element_Hash | ||
return | Zend_Form_Element_Hash |
public setSession ( Zend_Session_Namespace $session ) : Zend_Form_Element_Hash | ||
$session | Zend_Session_Namespace | |
return | Zend_Form_Element_Hash |
public setTimeout ( integer $ttl ) : Zend_Form_Element_Hash | ||
$ttl | integer | |
return | Zend_Form_Element_Hash |
protected Zend_Session_Namespace $_session | ||
return | Zend_Session_Namespace |
public string $helper | ||
return | string |