本文整理汇总了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();