PHP 클래스 Prado\Web\UI\TPageStateFormatter

TPageStateFormatter is a utility class to transform the page state into and from a string that can be properly saved in persistent storage. Depending on the {@link TPage::getEnableStateValidation() EnableStateValidation} and {@link TPage::getEnableStateEncryption() EnableStateEncryption}, TPageStateFormatter may do HMAC validation and encryption to prevent the state data from being tampered or viewed. The private keys and hashing/encryption methods are determined by {@link TApplication::getSecurityManager() SecurityManager}.
부터: 3.1
저자: Qiang Xue ([email protected])
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
serialize ( $page, $data ) : string
unserialize ( $page, $data ) : mixed

메소드 상세

serialize() 공개 정적인 메소드

public static serialize ( $page, $data ) : string
리턴 string serialized data

unserialize() 공개 정적인 메소드

public static unserialize ( $page, $data ) : mixed
리턴 mixed unserialized state data, null if data is corrupted