note 13739 deleted from language.oop by victor

From: Date: Sat, 07 Dec 2002 15:51:29 +0000
Subject: note 13739 deleted from language.oop by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40486@lists.php.net to get a copy of this message
By the way, here are some examples of use of my class Node above to show how easy it makes life with classes and databases: //To create a new database record: $node = new Node ($db, false, $persID); $node->commit(); //To read existing database data: $node = new Node ($db, $nodeID); $persID = $node->person; //To overwrite existing database data: $node = new Node ($db, $nodeID, $persID); $node->commit(); Notes: ------ A. If you can't guess what my database class looks like ($db above is an instance of it), contact me and I'll let you know. B. Node is a very simple example with only one important field. Real tables and their corresponding classes have more fields and soon sprout more specialised methods too. C. Note the four-line if($person) block in Node's constructor - you need one like that for just about every column in your table.

« previous php.notes (#40486) next »