Login   Register  
PHP Classes
elePHPant
Icontem

File: v3example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin L  >  dList v3  >  v3example  >  Download  
File: v3example
Role: Example script
Content type: text/plain
Description: new example
Class: dList v3
ArrayList like .net with DB Serialization!
Author: By
Last change: the new example for dlistv3(only example code you need the class too)
Date: 2003-09-17 11:51
Size: 663 bytes
 

Contents

Class file image Download
<?
require_once("./dList.php");

$top=new dList();
$sub=new dList();
$subsub=new dList();
$top->SetIdentity("TopNode");
$sub->SetIdentity("SubNode");
$subsub->SetIdentity("SubSubNode");

$top->Add("Link 1");
$top->Add("Link 2");
$top->Add("Link 3");

$sub->Add("Link 3.1");
$sub->Add("Link 3.2");
$sub->Add("Link 3.3");

$subsub->Add("Link 3.3.1");
$subsub->Add("Link 3.3.2");
$subsub->Add("Link 3.3.3");

$sub->Add($subsub);
$top->Add($sub);

$top->Add("Link 4");
$top->Add("Link 5");

echo 
"<table>";
echo 
"<tr><td>";
$top->SaveRecursiveEdit($internal);
$top->RecursiveEdit("internal");
echo 
"</td></tr>";
echo 
"</table>";

?>