PHP Class 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}.
Since: 3.1
Author: Qiang Xue ([email protected])
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
serialize ( $page, $data ) : string
unserialize ( $page, $data ) : mixed

Method Details

serialize() public static méthode

public static serialize ( $page, $data ) : string
Résultat string serialized data

unserialize() public static méthode

public static unserialize ( $page, $data ) : mixed
Résultat mixed unserialized state data, null if data is corrupted