PHP Classes

File: dump/dumpTest.php

Recommend this page to a friend!
  Classes of Bulent Tezcan   Adump   dump/dumpTest.php   Download  
File: dump/dumpTest.php
Role: Unit test script
Content type: text/plain
Description: test script
Class: Adump
A class that dumps any kind of variable
Author: By
Last change:
Date: 20 years ago
Size: 1,065 bytes


Class file image Download
    * @author Bulent Tezcan.

require_once "Dump.class.php";

$d = new Dump ( );

# try the following methods to see how things change...
    # ------------------------------------------------------

    # $d->resetSessionData ( ); // call this method to reset Session Data

    # $d->setRefresh($value); // By default it is set to 4, change it to your liking

    # $d->setPopupWidth($value); // This will change the popup window's width

    # $d->setPopupHeight($value); // This will change the popup window's height

for ($i=0; $i < 5; $i++)
$d->assignData('test_string-'.$i, rand(1,time()));


"<h3>Please refresh this page to see how it works..</h3>";
"<h3>After four times it will reset to zero.</h3><hr>";
"<h3>The Popup window shows all the variables we dumped so far. We keep them in the session, and it gets cleared after {n} times defined in the class, you can change it according to your needs.</h3><hr>";