反序列化 unserialize()
null Module_OOP_ORM_Data::__wakeup( )
256257258259260261262263264265266267268269270public
function
__wakeup()
{
if
( isset(
$this
->__orm_sleep_data__[
'v'
] ) &&
$this
->__orm_sleep_data__[
'v'
] ==
'1.0'
)
{
# 将数据初始化设置进去
$this
->__construct(
$this
->__orm_sleep_data__[
'd'
] );
# 清除
unset(
$this
->__orm_sleep_data__);
}
else
{
$this
->__construct();
}
}