Login   Register  
PHP Classes
elePHPant
Icontem

File: post-serialize-by-manager.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of nghia nguyen  >  Recursive reference serialize  >  post-serialize-by-manager.php  >  Download  
File: post-serialize-by-manager.php
Role: Example script
Content type: text/plain
Description: post serialize by manager helper
Class: Recursive reference serialize
Serialize objects with cyclic references
Author: By
Last change: faster by ReferencedObjectSerializeMarker class
Date: 2009-06-01 03:12
Size: 367 bytes
 

Contents

Class file image Download
<?php
require_once 'SerializeManager.php';
if(isset(
$this->__unserialized_data__)){
    if(
is_array($this->__unserialized_data__)){
        
SerializeManager::instance()
         ->
replaceUnserializedObjects($this->__unserialized_data__);
        foreach(
$this->__unserialized_data__ as $key=>$value){
          
$this->$key $value;
        }
    }
    unset(
$this->__unserialized_data__);
}
?>