示例#1
0
 /**
  * logInfo
  * to help debugging Payment notification for example
  * Keep it for compatibilty
  */
 protected function logInfo($text, $type = 'message', $doLog = false)
 {
     if (!class_exists('VmConfig')) {
         require JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
     }
     VmConfig::loadConfig();
     if (isset($this->_debug) and $this->_debug or $doLog) {
         $oldLogFileName = VmConfig::$logFileName;
         VmConfig::$logFileName = $this->getLogFileName();
         logInfo($text, $type);
         VmConfig::$logFileName = $oldLogFileName;
     }
 }
示例#2
0
	/**
	 * logInfo
	 * to help debugging Payment notification for example
	 * Keep it for compatibilty
	 */
	protected function logInfo ($text, $type = 'message', $doLog=false) {
		if (!class_exists( 'VmConfig' )) require(JPATH_COMPONENT_ADMINISTRATOR .'/helpers/config.php');
		VmConfig::loadConfig();
		if ((isset($this->_debug) and $this->_debug) OR $doLog) {
			$oldLogFileName= 	VmConfig::$logFileName;
			VmConfig::$logFileName =$this->getLogFileName() ;
			logInfo($text, $type);
			VmConfig::$logFileName =$oldLogFileName;
		}
	}