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
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cUriBuilderMR
  • ModRewrite
  • ModRewrite_ContentController
  • ModRewrite_ContentExpertController
  • ModRewrite_ContentTestController
  • ModRewrite_ControllerAbstract
  • ModRewriteBase
  • ModRewriteController
  • ModRewriteDebugger
  • ModRewriteTest
  • ModRewriteUrlStack
  • ModRewriteUrlUtil

Functions

  • mr_arrayValue
  • mr_buildGeneratedCode
  • mr_buildNewUrl
  • mr_conCopyArtLang
  • mr_conMoveArticles
  • mr_conSaveArticle
  • mr_conSyncArticle
  • mr_debugOutput
  • mr_getConfiguration
  • mr_getConfigurationFilePath
  • mr_getRequest
  • mr_header
  • mr_i18n
  • mr_loadConfiguration
  • mr_queryAndNextRecord
  • mr_removeMultipleChars
  • mr_requestCleanup
  • mr_runFrontendController
  • mr_setClientLanguageId
  • mr_setConfiguration
  • mr_strCopyCategory
  • mr_strMovedownCategory
  • mr_strMoveSubtree
  • mr_strMoveUpCategory
  • mr_strNewCategory
  • mr_strNewTree
  • mr_strRenameCategory
  • mr_strSyncCategory
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * AMR debugger class
 4:  *
 5:  * @package     Plugin
 6:  * @subpackage  ModRewrite
 7:  * @id          $Id$:
 8:  * @author      Murat Purc <murat@purc.de>
 9:  * @copyright   four for business AG <www.4fb.de>
10:  * @license     http://www.contenido.org/license/LIZENZ.txt
11:  * @link        http://www.4fb.de
12:  * @link        http://www.contenido.org
13:  */
14: 
15: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: /**
18:  * Mod rewrite debugger class.
19:  *
20:  * @author      Murat Purc <murat@purc.de>
21:  * @package     Plugin
22:  * @subpackage  ModRewrite
23:  */
24: class ModRewriteDebugger {
25: 
26:     /**
27:      * Flag to enable debugger
28:      * @var  bool
29:      */
30:     protected static $_bEnabled = false;
31: 
32:     /**
33:      * Enable debugger setter.
34:      * @param  bool  $bEnabled
35:      */
36:     public static function setEnabled($bEnabled) {
37:         self::$_bEnabled = (bool) $bEnabled;
38:     }
39: 
40:     /**
41:      * Adds variable to debugger.
42:      * Wrapper for <code>cDebug::getDebugger('visible_adv')</code>.
43:      *
44:      * @param  mixed  $mVar   The variable to dump
45:      * @param  string $sLabel Describtion for passed $mVar
46:      *
47:      * @throws cInvalidArgumentException
48:      */
49:     public static function add($mVar, $sLabel = '') {
50:         if (!self::$_bEnabled) {
51:             return;
52:         }
53:         cDebug::getDebugger()->add($mVar, $sLabel);
54:     }
55: 
56:     /**
57:      * Returns output of all added variables to debug.
58:      *
59:      * @return  string
60:      * @throws cInvalidArgumentException
61:      */
62:     public static function getAll() {
63:         if (!self::$_bEnabled) {
64:             return '';
65:         }
66:         ob_start();
67:         cDebug::getDebugger()->showAll();
68:         $sOutput = ob_get_contents();
69:         ob_end_clean();
70:         return $sOutput;
71:     }
72: 
73:     /**
74:      * Logs variable to debugger.
75:      * Wrapper for <code>cDebug::getDebugger(cDebug::DEBUGGER_FILE)</code>.
76:      *
77:      * @param  mixed  $mVar   The variable to log the contents
78:      * @param  string $sLabel Describtion for passed $mVar
79:      *
80:      * @throws cInvalidArgumentException
81:      */
82:     public static function log($mVar, $sLabel = '') {
83:         if (!self::$_bEnabled) {
84:             return;
85:         }
86:         cDebug::getDebugger(cDebug::DEBUGGER_FILE)->show($mVar, $sLabel);
87:     }
88: 
89: }
90: 
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0