<?php
/**
* Object
* Base class
*/
Class Object
{
/* Whether to output debugging information * *
var $debug = true;
/**
* Object
* @deprecated method of destructor
*
* @return void
*/
function Object ()
{
Whether the user enters from the homepage, makes the judgment
if (!defined (' INDEX '))
{
Die ("Hacking attempt");
}
Echo ' Create Object success! ';
}
/**
* Msg_die
* @deprecated Debug Information output
* @param string
* @return void
*/
function Msg_die ($info, $file, $line)
{
if ($this->debug)
{
$format = "There is happen error information:%s.".
"The file name:%s, on line:%s.";
printf ($format, $info, $file, $line);
$error = Debug_backtrace ();
Print_r ($error [0]);
}
}
/**
* Setdebug
* @deprecated Set whether debugging information is output
* @param Boolean True or False
* @return void
*/
function Setdebug ($bool)
{
$this->debug = Is_bool ($bool)? $bool: false;
}
/**
* Getdebug * @deprecated to see if debugging information is turned on
* @param void
* @return Boolean
*/
function Getdebug ()
{
return $this->debug;
}
}
?>