IStatePersister

IStatePersister

Package system.base
Inheritance interface IStatePersister
Subclasses CDbStatePersister, CStatePersister
Since 1.0
Source Code framework/base/interfaces.php
IStatePersister is the interface that must be implemented by state persister classes.

This interface must be implemented by all state persister classes (such as CStatePersister.

Public Methods

Method Description Defined By
load() Loads state data from a persistent storage. IStatePersister
save() Saves state data into a persistent storage. IStatePersister

Method Details

load() method

abstract public mixed load()
{return} mixed the state
Source Code: framework/base/interfaces.php#139 (show)
public function load();

Loads state data from a persistent storage.

save() method

abstract public void save(mixed $state)
$state mixed the state to be saved
Source Code: framework/base/interfaces.php#144 (show)
public function save($state);

Saves state data into a persistent storage.

© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc/api/1.1/IStatePersister

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部