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}.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Описание методов
serialize()
публичный статический Метод
unserialize()
публичный статический Метод
public static unserialize ( $page, $data ) : mixed |
Результат |
mixed |
unserialized state data, null if data is corrupted |