PHP Classes

File: docclassmethods.php

Recommend this page to a friend!
  Classes of Martin Fasani  >  HTTP Request class  >  docclassmethods.php  >  Download  
File: docclassmethods.php
Role: Auxiliary script
Content type: text/plain
Description: Properties and methods of the class
Class: HTTP Request class
Generate Javascript to send HTTP AJAX requests
Author: By
Last change:
Date: 17 years ago
Size: 642 bytes
 

Contents

Class file image Download
<?php
/*
Author : Martin Fasani [ www.movil.be ]
lastMod: 20050701 [YYYYMMDD]
Properties and methods of the class
*/
require("classhttpreq.php");
function
print_vars($obj) {
  
$arr = get_object_vars($obj);
   while (list(
$prop, $val) = each($arr))
       echo
"\t$prop = $val\n";
}

function
print_methods($obj) {
  
$arr = get_class_methods(get_class($obj));
   foreach (
$arr as $method)
       echo
"\tfunction $method()\n";
}
$httpreq=new httpreq('httpreq1');
echo
"<pre>";
echo
"\nhttpreq: Properties\n";
print_vars($httpreq);
echo
"\nhttpreq: Methods\n";
print_methods($httpreq);
echo
"</pre>";
?>