/**
  * @covers chromephpManager::loadConfig
  */
 public function testLoadConfig()
 {
     $oDebugaxConfig = new Debugax_Config();
     $aResult = $oDebugaxConfig->getConfigFile();
     $oTestClass = oxNew('chromephpManager');
     $aConfig = $oTestClass->loadConfig();
     $this->assertType('array', $aConfig);
     $this->assertSame($aResult, $aConfig);
 }
示例#2
0
 /**
  * Wir bekommen eine Array mit die Module Configuration
  * @author Rafal Wesolowski <*****@*****.**>
  * @return array
  */
 public function loadConfig()
 {
     $oDebugaxConfig = new Debugax_Config();
     return $oDebugaxConfig->getConfigFile();
 }
 protected function _getConfigFile()
 {
     $oDebugConfig = new Debugax_Config();
     return $oDebugConfig->getConfigFile();
 }
示例#4
0
 protected function _setConfig()
 {
     $oDebugaxConfig = new Debugax_Config();
     $this->aConfig = $oDebugaxConfig->getConfigFile();
 }
 public function getJsonResult()
 {
     $oDebugaxConfig = new Debugax_Config();
     echo json_encode($oDebugaxConfig->clean_trace($this->_json));
 }
示例#6
0
 /**
  * Die Methode ist gebraucht wenn ein Filte auf UserModel
  * eingestellt ist.
  * Bitte setzt die Funktion da wo möchest du
  * die SQL-Abfrage sehen.
  * Bitte mit stopDebug() benutzen.
  * Example:
  * public function getVariants()
  * {
  *    startDebug();
  *    $bRes = parent::getVariants();
  *    stopDebug();
  *    return $bRes;
  * }
  *
  * @author Rafal Wesolowski <*****@*****.**>
  * @return void
  */
 function startDebug($header = false)
 {
     $oDebugaxConfig = new Debugax_Config();
     $mResult = true;
     if ($header == false) {
         $mResult = $oDebugaxConfig->getIdent();
     }
     $oDebugaxConfig->setSearchText();
     return $mResult && !oxSession::hasVar('debugPHP') ? oxSession::setVar('debugPHP', $mResult) : false;
 }