PHP 클래스 Newscoop\Form\Element\OldHash

상속: extends Zend_Form_Element_Xhtm\Zend_Form_Element_Xhtml
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 프로퍼티들

프로퍼티 타입 설명
$helper string Use formHidden view helper by default

보호된 프로퍼티들

프로퍼티 타입 설명
$_hash mixed Actual hash used.

공개 메소드들

메소드 설명
__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
initCsrfValidator ( ) : Zend_Form_Element_Hash Initialize CSRF validator
render ( Zend_View_Interface $view = null ) : string Render CSRF token in form

메소드 상세

__construct() 공개 메소드

Creates session namespace for CSRF token, and adds validator for CSRF token.
public __construct ( string | array | Zend_Config $spec, array | Zend_Config $options = null ) : void
$spec string | array | Zend_Config
$options array | Zend_Config
리턴 void

getHash() 공개 메소드

If no CSRF token currently exists, generates one.
public getHash ( ) : string
리턴 string

getLabel() 공개 메소드

Override getLabel() to always be empty
public getLabel ( ) : null
리턴 null

initCsrfValidator() 공개 메소드

Creates Session namespace, and initializes CSRF token in session. Additionally, adds validator for validating CSRF token.
public initCsrfValidator ( ) : Zend_Form_Element_Hash
리턴 Zend_Form_Element_Hash

render() 공개 메소드

Render CSRF token in form
public render ( Zend_View_Interface $view = null ) : string
$view Zend_View_Interface
리턴 string

프로퍼티 상세

$_hash 보호되어 있는 프로퍼티

Actual hash used.
protected mixed $_hash
리턴 mixed

$helper 공개적으로 프로퍼티

Use formHidden view helper by default
public string $helper
리턴 string