Exemplo n.º 1
0
 /**
  * Speichert die Daten des Response
  * @param array $response
  */
 public function response(array $response)
 {
     if (!isset(self::$_recordRequest)) {
         return;
     }
     $configBlacklist = new Dragon_Application_Config('dragonx/log/blacklist');
     $configBlacklistArray = $configBlacklist->toArray();
     if (isset($response['result']) && is_array($response['result'])) {
         foreach ($response['result'] as $name => &$param) {
             if (in_array($name, $configBlacklistArray)) {
                 $param = '';
             }
             unset($param);
         }
     }
     self::$_recordRequest->fromArray(array('response' => Zend_Json::encode($response), 'responsetimestamp' => time()));
     $configEngine = new Dragon_Application_Config('dragonx/log/engine');
     Zend_Registry::get($configEngine->engine)->save(self::$_recordRequest);
 }
 /**
  * Gibt die Anwendungsdaten aus den Einstellungen zurück
  * @return array
  */
 public function getApplication()
 {
     $configApplication = new Dragon_Application_Config('dragon/application/application');
     return $configApplication->toArray();
 }