本文整理汇总了PHP中Trace::register方法的典型用法代码示例。如果您正苦于以下问题:PHP Trace::register方法的具体用法?PHP Trace::register怎么用?PHP Trace::register使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Trace
的用法示例。
在下文中一共展示了Trace::register方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($conn = NULL, $database = NULL)
{
if (is_null($conn)) {
$this->conn = GenFun::hostConnect($database);
}
$this->traceID = "Guestbook_v0";
Trace::register($this, $this->traceID);
$this->subject = "You have a new message";
}
示例2: dirname
<?php
//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once dirname(dirname(dirname(__FILE__))) . "/uber_src/client/werm/utils/Trace.php";
require_once "Dummy.php";
$dummy = new Dummy();
Trace::register($dummy, "Dummy");
$dummy->shit();
print_r(Trace::$output);
示例3: Account_v0
<?php
//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
require_once Import::$uber_src_path . "server/kaloyan/class.krumo.php";
//------------------------------------------------------------------------
Trace::$html = true;
//------------------------------------------------------------------------
$account = new Account_v0();
Trace::register($account, "account");
$account->tblName = Accounts_const::TBL;
$chk = $account->confirm($_GET['hash'], Accounts_const::TBL);
$chk['output'] = Trace::$output;
krumo($chk);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
示例4: init
public function init()
{
$this->confirmLink = new ConfirmLink_v0();
Trace::register($this->confirmLink, "confirmLink", $this);
}
示例5: database
return $conn;
}
//------------------------------------------------------------------------
function database($conn, $database)
{
mysql_select_db($database, $conn) or die('Could not connect to mysql database.');
}
//------------------------------------------------------------------------
$conn = hostConnect();
//------------------------------------------------------------------------
database($conn, Constants::DATABASE);
//------------------------------------------------------------------------
Trace::$html = true;
//------------------------------------------------------------------------
$ml = new Mailinglist_v0();
Trace::register($ml, "maillinglist");
$ml->init();
$chk = $ml->confirm($_GET['hash']);
$chk['output'] = Trace::$output;
print_r($chk['output']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>