本文整理匯總了PHP中Debug::Set方法的典型用法代碼示例。如果您正苦於以下問題:PHP Debug::Set方法的具體用法?PHP Debug::Set怎麽用?PHP Debug::Set使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Debug
的用法示例。
在下文中一共展示了Debug::Set方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Setup
public function Setup()
{
Debug::Set('Page setup initiated');
Sql::SetQueryName('log_file');
Sql::ExecuteSql(' SELECT * FROM don_log ; ');
$this->RunSql(' SELECT * FROM don_log ; ');
//echo "<br> logid = " . \Donsapp\Data::Get('log_file','id',234);
}
示例2: Setup
public function Setup($o)
{
$this->o =& $o;
Debug::Set('Page setup initiated');
Sql::SetQueryName('all_materials');
Sql::ExecuteSql(' SELECT * FROM ron_material_list ORDER BY id ASC ; ');
Sql::SetQueryName('all_sizes');
Sql::ExecuteSql(' SELECT * FROM ron_size_list ORDER BY millimeters ASC ; ');
Sql::SetQueryName('current_size');
Sql::SetSql(' SELECT M.* ', 1);
Sql::SetSql(' FROM ron_materials_by_size S ', 1);
Sql::SetSql(' LEFT JOIN ron_material_list M ON M.id = S.material_id ', 1);
Sql::SetSql(' WHERE S.size_id = ' . $this->o->GetQs('size', 0), 1);
Sql::SetSql(' ORDER BY M.material ASC ', 1);
Sql::SetSql(' ; ', 1);
Sql::Execute();
}
示例3: SetAllQs
public function SetAllQs()
{
foreach ($this->_post_array as $name => $value) {
$this->SetQs($name, $value);
}
foreach ($this->_get_array as $name => $value) {
$this->SetQs($name, $value);
}
foreach ($this->_qs as $name => $value) {
Debug::Set('QS: ' . $name . ' = ' . $value);
}
}
示例4: Set
public static function Set($x)
{
self::$_results[self::$_name] = $x;
Debug::Set('Stored named query: ' . self::$_name);
self::$_name = '';
}
示例5: App
<?php
namespace Donsapp;
require_once 'includes.php';
Debug::Set('Setup');
$o = new App();
$o->SetPageRenderStartTime();
$o->Setup();
$class_file = './pages/' . $o->_page . '/classes.php';
if (is_file($class_file)) {
require_once $class_file;
$p = new Page();
$p->Setup();
}
$p = new Page();
$p->Setup();
$o->SetPageRenderFinishTime();