当前位置: 首页>>代码示例>>PHP>>正文


PHP Trace::register方法代码示例

本文整理汇总了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";
 }
开发者ID:awwthentic1234,项目名称:hey,代码行数:9,代码来源:Guestbook_v0.php

示例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);
开发者ID:awwthentic1234,项目名称:hey,代码行数:13,代码来源:index.php

示例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" />
开发者ID:awwthentic1234,项目名称:hey,代码行数:31,代码来源:confirmation.php

示例4: init

 public function init()
 {
     $this->confirmLink = new ConfirmLink_v0();
     Trace::register($this->confirmLink, "confirmLink", $this);
 }
开发者ID:awwthentic1234,项目名称:hey,代码行数:5,代码来源:Mailinglist_v0.php

示例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>
开发者ID:awwthentic1234,项目名称:hey,代码行数:31,代码来源:confirmation.php


注:本文中的Trace::register方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。