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


PHP Debugger::fireLog方法代码示例

本文整理汇总了PHP中Tracy\Debugger::fireLog方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::fireLog方法的具体用法?PHP Debugger::fireLog怎么用?PHP Debugger::fireLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracy\Debugger的用法示例。


在下文中一共展示了Debugger::fireLog方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: changeOrder

 /**
  * changeOrder
  * funkce pozmeni serazeni fotek
  * vyuziva jQuery sortable
  */
 public function changeOrder($newOrdering)
 {
     $newOrdering = explode(",", $newOrdering);
     Debugger::fireLog($newOrdering);
     $fotky = $this->db->query('SELECT id_fotky FROM fotky ORDER BY razeni')->fetchAll();
     $fotkyId = array();
     foreach ($fotky as $fotka) {
         $fotkyId[] = $fotka->id_fotky;
     }
     Debugger::fireLog($fotkyId);
     for ($i = 0; $i < count($newOrdering); $i++) {
         $this->db->query("UPDATE fotky SET razeni=? WHERE id_fotky=?", $i, $fotkyId[(int) $newOrdering[$i]]);
     }
     $fotky = $this->db->query('SELECT id_fotky FROM fotky ORDER BY razeni')->fetchAll();
     $fotkyId = array();
     foreach ($fotky as $fotka) {
         $fotkyId[] = $fotka->id_fotky;
     }
     Debugger::fireLog($fotkyId);
 }
开发者ID:re1la2pse,项目名称:detinsky_projekt,代码行数:25,代码来源:GalerieModel.php

示例2: first

<!DOCTYPE html><link rel="stylesheet" href="assets/style.css">

<h1>FireLogger demo</h1>

<p>Requires Firefox, Firebug and <a href="http://firelogger.binaryage.com">FireLogger</a>.</p>

<?php 
require __DIR__ . '/../src/tracy.php';
use Tracy\Debugger;
$arr = array(10, 20, array('key1' => 'val1', 'key2' => TRUE));
// will show in FireLogger tab in Firebug
Debugger::fireLog('Hello World');
Debugger::fireLog($arr);
function first($arg1, $arg2)
{
    second(TRUE, FALSE);
}
function second($arg1, $arg2)
{
    third(array(1, 2, 3));
}
function third($arg1)
{
    throw new Exception('The my exception', 123);
}
try {
    first(10, 'any string');
} catch (Exception $e) {
    Debugger::fireLog($e);
}
开发者ID:petrparolek,项目名称:web_cms,代码行数:30,代码来源:Firebug-dump.php

示例3: renderEditRezervace

 public function renderEditRezervace($id)
 {
     $this->template->nameRezervace = $this->rezervaceModel->getNameById($id);
     Debugger::fireLog($this->rezervaceModel->getNameById($id));
 }
开发者ID:re1la2pse,项目名称:detinsky_projekt,代码行数:5,代码来源:UbytovaniPresenter.php

示例4: flg

function flg($var)
{
    \Tracy\Debugger::fireLog($var);
}
开发者ID:kocourPB,项目名称:rabbit,代码行数:4,代码来源:bootstrap.php

示例5:

 /**
  * @param $message
  */
 function fire_log($message)
 {
     Debugger::fireLog($message);
 }
开发者ID:sanjoydesk,项目名称:framework,代码行数:7,代码来源:Support.php

示例6: testRemoteMinerExists

 /**
  * Funkce pro otestování existence LM connect mineru
  * @return bool
  */
 private function testRemoteMinerExists()
 {
     try {
         $remoteMinerId = $this->getRemoteMinerId();
         if (!$remoteMinerId) {
             throw new \Exception('LISpMiner ID was not provided.');
         }
         $url = $this->getRemoteMinerUrl() . '/miners/' . $remoteMinerId;
         $curlRequest = self::prepareNewCurlRequest($url);
         $response = $curlRequest->get();
         Debugger::fireLog($response, "Test executed");
         $this->parseResponse($response, '');
         return true;
     } catch (\Exception $ex) {
         return false;
     }
 }
开发者ID:kizi,项目名称:easyminer-easyminercenter,代码行数:21,代码来源:LMDriver.php


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