ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_CalcEngine_Logger Class Reference
+ Collaboration diagram for PHPExcel_CalcEngine_Logger:

Public Member Functions

 __construct (PHPExcel_CalcEngine_CyclicReferenceStack $stack)
 Instantiate a Calculation engine logger. More...
 
 setWriteDebugLog ($pValue=FALSE)
 Enable/Disable Calculation engine logging. More...
 
 getWriteDebugLog ()
 Return whether calculation engine logging is enabled or disabled. More...
 
 setEchoDebugLog ($pValue=FALSE)
 Enable/Disable echoing of debug log information. More...
 
 getEchoDebugLog ()
 Return whether echoing of debug log information is enabled or disabled. More...
 
 writeDebugLog ()
 Write an entry to the calculation engine debug log. More...
 
 clearLog ()
 Clear the calculation engine debug log. More...
 
 getLog ()
 Return the calculation engine debug log. More...
 

Private Attributes

 $_writeDebugLog = FALSE
 
 $_echoDebugLog = FALSE
 
 $_debugLog = array()
 
 $_cellStack
 

Detailed Description

Definition at line 35 of file Logger.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_CalcEngine_Logger::__construct ( PHPExcel_CalcEngine_CyclicReferenceStack  $stack)

Instantiate a Calculation engine logger.

Parameters
PHPExcel_CalcEngine_CyclicReferenceStack$stack

Definition at line 76 of file Logger.php.

76  {
77  $this->_cellStack = $stack;
78  }

Member Function Documentation

◆ clearLog()

PHPExcel_CalcEngine_Logger::clearLog ( )

Clear the calculation engine debug log.

Definition at line 139 of file Logger.php.

References array.

139  {
140  $this->_debugLog = array();
141  } // function flushLogger()
Create styles array
The data for the language used.

◆ getEchoDebugLog()

PHPExcel_CalcEngine_Logger::getEchoDebugLog ( )

Return whether echoing of debug log information is enabled or disabled.

Returns
boolean

Definition at line 112 of file Logger.php.

References $_echoDebugLog.

112  {
113  return $this->_echoDebugLog;
114  }

◆ getLog()

PHPExcel_CalcEngine_Logger::getLog ( )

Return the calculation engine debug log.

Returns
string[]

Definition at line 148 of file Logger.php.

References $_debugLog.

148  {
149  return $this->_debugLog;
150  } // function flushLogger()

◆ getWriteDebugLog()

PHPExcel_CalcEngine_Logger::getWriteDebugLog ( )

Return whether calculation engine logging is enabled or disabled.

Returns
boolean

Definition at line 94 of file Logger.php.

References $_writeDebugLog.

94  {
95  return $this->_writeDebugLog;
96  }

◆ setEchoDebugLog()

PHPExcel_CalcEngine_Logger::setEchoDebugLog (   $pValue = FALSE)

Enable/Disable echoing of debug log information.

Parameters
boolean$pValue

Definition at line 103 of file Logger.php.

103  {
104  $this->_echoDebugLog = $pValue;
105  }

◆ setWriteDebugLog()

PHPExcel_CalcEngine_Logger::setWriteDebugLog (   $pValue = FALSE)

Enable/Disable Calculation engine logging.

Parameters
boolean$pValue

Definition at line 85 of file Logger.php.

85  {
86  $this->_writeDebugLog = $pValue;
87  }

◆ writeDebugLog()

PHPExcel_CalcEngine_Logger::writeDebugLog ( )

Write an entry to the calculation engine debug log.

Definition at line 119 of file Logger.php.

References $message, and PHP_EOL.

119  {
120  // Only write the debug log if logging is enabled
121  if ($this->_writeDebugLog) {
122  $message = implode(func_get_args());
123  $cellReference = implode(' -> ', $this->_cellStack->showStack());
124  if ($this->_echoDebugLog) {
125  echo $cellReference,
126  ($this->_cellStack->count() > 0 ? ' => ' : ''),
127  $message,
128  PHP_EOL;
129  }
130  $this->_debugLog[] = $cellReference .
131  ($this->_cellStack->count() > 0 ? ' => ' : '') .
132  $message;
133  }
134  } // function _writeDebug()
catch(Exception $e) $message
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL

Field Documentation

◆ $_cellStack

PHPExcel_CalcEngine_Logger::$_cellStack
private

Definition at line 68 of file Logger.php.

◆ $_debugLog

PHPExcel_CalcEngine_Logger::$_debugLog = array()
private

Definition at line 61 of file Logger.php.

Referenced by getLog().

◆ $_echoDebugLog

PHPExcel_CalcEngine_Logger::$_echoDebugLog = FALSE
private

Definition at line 54 of file Logger.php.

Referenced by getEchoDebugLog().

◆ $_writeDebugLog

PHPExcel_CalcEngine_Logger::$_writeDebugLog = FALSE
private

Definition at line 44 of file Logger.php.

Referenced by getWriteDebugLog().


The documentation for this class was generated from the following file: