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


PHP fCore::enableDebugging方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     $_SERVER['SERVER_NAME'] = 'flourishlib.com';
     if (defined('EMAIL_DEBUG')) {
         fCore::enableDebugging(TRUE);
     }
 }
开发者ID:philip,项目名称:flourish,代码行数:7,代码来源:fSMTPTest.php

示例2: setUp

 public function setUp()
 {
     if (defined('SKIPPING') || !defined('EMAIL_PASSWORD')) {
         $this->markTestSkipped();
     }
     if (defined('EMAIL_DEBUG')) {
         fCore::enableDebugging(TRUE);
     }
 }
开发者ID:nurulimamnotes,项目名称:flourish-old,代码行数:9,代码来源:fMailboxTest.php

示例3: testDebug

 /**
  * @dataProvider debugProvider
  */
 public function testDebug($value, $force, $global, $expected_output)
 {
     ob_start();
     if ($global) {
         fCore::enableDebugging(TRUE);
     }
     fCore::debug($value, $force);
     $output = ob_get_clean();
     $this->assertEquals($expected_output, rtrim($output, "\n"));
 }
开发者ID:nurulimamnotes,项目名称:flourish-old,代码行数:13,代码来源:fCoreTest.php

示例4: setUp

 public function setUp()
 {
     if (defined('SKIPPING') || !defined('EMAIL_PASSWORD')) {
         $this->markTestSkipped();
     }
     $_SERVER['SERVER_NAME'] = 'flourishlib.com';
     if (defined('EMAIL_DEBUG')) {
         fCore::enableDebugging(TRUE);
     }
 }
开发者ID:nurulimamnotes,项目名称:flourish-old,代码行数:10,代码来源:fSMTPTest.php

示例5: getopt

include_once 'inc/init.php';
$debug = false;
if (isset($_SERVER['argc'])) {
    $args = getopt('d::h::', array('debug', 'help'));
    if (isset($args['debug']) || isset($args['d'])) {
        $debug = true;
    } elseif (isset($args['help']) || isset($args['h'])) {
        print "Tattle Check Processor: \n" . "\n" . "--help, -h : Displays this help \n" . "\n" . "--debug, -d : Enables debuging (?debug=true can be used via a web request) \n";
    }
} elseif ($debug = fRequest::get('debug', 'boolean')) {
    $debug = true;
}
if ($debug) {
    print "debug enabled";
    fCore::enableDebugging(TRUE);
}
$checks = Check::findActive();
foreach ($checks as $check) {
    $data = Check::getData($check);
    if (count($data) > 0) {
        $title = $check->prepareName();
        fCore::debug('Processing :' . $title . ":\n", FALSE);
        $check_value = Check::getResultValue($data, $check);
        fCore::debug("Result :" . $check_value . ":\n", FALSE);
        $result = Check::setResultsLevel($check_value, $check);
        fCore::debug("Check Value:" . $result . ":\n", FALSE);
        if (is_null($check->getLastCheckTime())) {
            $next_check = new fTimestamp();
            fCore::debug("is null?\n", FALSE);
        } else {
开发者ID:rberger,项目名称:Graphite-Tattle,代码行数:30,代码来源:processor.php

示例6: define

 // New method (1.4.0+)
 // Paths and URLs
 define('DOC_ROOT', realpath(dirname(__FILE__) . '/../'));
 define('URL_ROOT', str_replace('\\', '/', substr(DOC_ROOT, strlen(realpath($_SERVER['DOCUMENT_ROOT']))) . '/'));
 spl_autoload_register('printmaster_autoload');
 // Initialise configuration
 $config = new Config();
 $config->features = new Config();
 // Include base config file
 require_once dirname(__FILE__) . '/config/config.default.php';
 // Include custom config file
 if (file_exists(DOC_ROOT . '/inc/config/config.php')) {
     require_once dirname(__FILE__) . '/config/config.php';
 }
 // Debugging assistance
 fCore::enableDebugging(config_item('debug', FALSE));
 //fCore::enableErrorHandling(DOC_ROOT . '/error.log');
 //fCore::enableExceptionHandling(DOC_ROOT . '/exceptions.log');
 fCore::enableErrorHandling('html');
 fCore::enableExceptionHandling('html');
 // Set page template
 $tpl = new fTemplating(DOC_ROOT . '/views/template');
 $tpl->set('header', 'header.php');
 $tpl->set('footer', 'footer.php');
 $tpl->set('menu', 'menu.php');
 // @TODO remove these when the thresholds become configurable.
 global $status;
 $status[3] = array('OK', '73D216');
 // 3+ OK
 $status[2] = array('Low', 'EDD400');
 // 2+ Warning
开发者ID:mrjwc,项目名称:printmaster,代码行数:31,代码来源:core.php

示例7: array

<?php

// Consumable status
global $status;
$status[3] = array('OK', '73D216');
// 3+ OK
$status[2] = array('Low', 'EDD400');
// 2+ Warning
$status[0] = array('Critical', 'CC0000');
// 0: Empty - bad.
// Paths and URLs
define('DOC_ROOT', realpath(dirname(__FILE__) . '/../'));
define('URL_ROOT', str_replace('\\', '/', substr(DOC_ROOT, strlen(realpath($_SERVER['DOCUMENT_ROOT']))) . '/'));
// Error reporting
#error_reporting(E_ALL);
fCore::enableDebugging(FALSE);
#fCore::enableErrorHandling(DOC_ROOT . '/error.log');
#fCore::enableExceptionHandling(DOC_ROOT . '/exceptions.log');
fCore::enableErrorHandling('html');
fCore::enableExceptionHandling('html');
/**
 * Automatically includes classes
 * 
 * @throws Exception
 * 
 * @param  string $class_name  Name of the class to load
 * @return void
 */
function __autoload($class)
{
    $flourish_file = DOC_ROOT . '/inc/flourish/' . $class . '.php';
开发者ID:hibble,项目名称:printmaster,代码行数:31,代码来源:config.php

示例8: setUp

 public function setUp()
 {
     if (defined('EMAIL_DEBUG')) {
         fCore::enableDebugging(TRUE);
     }
 }
开发者ID:philip,项目名称:flourish,代码行数:6,代码来源:fMailboxTest.php


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