11.7. Yaf_Session
优质
小牛编辑
128浏览
2023-12-01
简介
Yaf_Session是Yaf对Session的包装, 实现了Iterator, ArrayAccess, Countable接口, 方便使用.
在PHP5.3之后, 打开yaf.use_namespace的情况下, 也可以使用Yaf\Session
final Yaf_Session implements Iterator , ArrayAccess , Countable {public static Yaf_Session getInstance ( void );
public Yaf_Session start ( void );
public mixed get ( string $name = NULL );
public boolean set ( string $name , mixed $value );
public mixed __get ( string $name );
public boolean __set ( string $name , mixed $value );
public boolean has ( string $name );
public boolean del ( string $name );
public boolean __isset ( string $name );
public boolean __unset ( string $name );
}