PHP Classes

File: Pickle.inc.php

Recommend this page to a friend!
  Classes of Alexander Zhukov   PHP Shelve   Pickle.inc.php   Download  
File: Pickle.inc.php
Role: ???
Content type: text/plain
Description: Pickle/Unpickle serializer classes
Class: PHP Shelve
Simple persistence mechanism for php objects
Author: By
Last change:
Date: 22 years ago
Size: 418 bytes
 

Contents

Class file image Download
<? // (C) 2002, Alexander Zhukov <alex@veresk.ru> class Pickle { var $_storage; function Pickle(&$obj) { $this->_storage = $obj; } function dump(&$obj) { $this->_storage->write(serialize($obj)); } } class Unpickle { var $_storage; function Unpickle(&$obj) { $this->_storage = $obj; } function & load() { return unserialize($this->_storage->read()); } } ?>