Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Function
  • Todo
  • Download
 1: <?php
 2: /**
 3:  * AMR debugger class
 4:  *
 5:  * @package     Plugin
 6:  * @subpackage  ModRewrite
 7:  * @version     SVN Revision $Rev:$
 8:  * @id          $Id$:
 9:  * @author      Murat Purc <murat@purc.de>
10:  * @copyright   four for business AG <www.4fb.de>
11:  * @license     http://www.contenido.org/license/LIZENZ.txt
12:  * @link        http://www.4fb.de
13:  * @link        http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * Mod rewrite debugger class.
20:  *
21:  * @author      Murat Purc <murat@purc.de>
22:  * @package     Plugin
23:  * @subpackage  ModRewrite
24:  */
25: class ModRewriteDebugger {
26: 
27:     /**
28:      * Flag to enable debugger
29:      * @var  bool
30:      */
31:     protected static $_bEnabled = false;
32: 
33:     /**
34:      * Enable debugger setter.
35:      * @param  bool  $bEnabled
36:      */
37:     public static function setEnabled($bEnabled) {
38:         self::$_bEnabled = (bool) $bEnabled;
39:     }
40: 
41:     /**
42:      * Adds variable to debugger.
43:      * Wrapper for <code>cDebug::getDebugger('visible_adv')</code>.
44:      *
45:      * @param  mixed   $mVar  The variable to dump
46:      * @param  string  $sLabel  Describtion for passed $mVar
47:      */
48:     public static function add($mVar, $sLabel = '') {
49:         if (!self::$_bEnabled) {
50:             return;
51:         }
52:         cDebug::getDebugger()->add($mVar, $sLabel);
53:     }
54: 
55:     /**
56:      * Returns output of all added variables to debug.
57:      * @return  string
58:      */
59:     public static function getAll() {
60:         if (!self::$_bEnabled) {
61:             return '';
62:         }
63:         ob_start();
64:         cDebug::getDebugger()->showAll();
65:         $sOutput = ob_get_contents();
66:         ob_end_clean();
67:         return $sOutput;
68:     }
69: 
70:     /**
71:      * Logs variable to debugger.
72:      * Wrapper for <code>cDebug::getDebugger(cDebug::DEBUGGER_FILE)</code>.
73:      *
74:      * @param  mixed   $mVar  The variable to log the contents
75:      * @param  string  $sLabel  Describtion for passed $mVar
76:      */
77:     public static function log($mVar, $sLabel = '') {
78:         if (!self::$_bEnabled) {
79:             return;
80:         }
81:         cDebug::getDebugger(cDebug::DEBUGGER_FILE)->show($mVar, $sLabel);
82:     }
83: 
84: }
85: 
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen