File: simpleObjectDB2/example/step6-delObject.php

Recommend this page to a friend!
  Classes of Ilya Nemihin  >  simpleObjectDB  >  simpleObjectDB2/example/step6-delObject.php  >  Download  
File: simpleObjectDB2/example/step6-delObject.php
Role: Example script
Content type: text/plain
Description: step6-delObject
Class: simpleObjectDB
simple object database
Author: By
Last change:
Date: 17 years ago
Size: 518 bytes
 

Contents

Class file image Download
<?php

//---[ simpleObjectDB ]---
// demo-step-6 "delObject"
//
// delete object ('person1')
//
//

$include_root = '../include/';
require_once(
$include_root . 'functions/ClassLoader.php' );

load_class( 'PersistenceSystem/PersistenceSystem.php' );

$initParams = array();
$initParams["storageRoot"] = 'root2/';

$persistenceSystem = new PersistenceSystem( $initParams );

// get root object
$root = $persistenceSystem->getObject('root');

// delete object
$root->delObject( 'person1' );

?>


For more information send a message to info at phpclasses dot org.