选择语言 :

 Module_OOP_ORM_Data::__wakeup

反序列化 unserialize()

null Module_OOP_ORM_Data::__wakeup( )
File: ./modules/oop/orm/data.class.php
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
public 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();
    }
}