Class LoggerPatternParser

Description

Most of the work of the LoggerPatternLayout class is delegated to the LoggerPatternParser class.

It is this class that parses conversion patterns and creates a chained list of LoggerPatternConverter converters.

  • version: $Revision: 1163520 $
  • since: 0.3

Located in /helpers/LoggerPatternParser.php (line 34)


	
			
Class Constant Summary
Variable Summary
Method Summary
void addConverter ( $pc)
string extractOption ()
void finalizeConverter ( $c)
LoggerPatternParser __construct (string $pattern)
Variables
mixed $currentLiteral (line 62)
  • access: private
LoggerFormattingInfo $formattingInfo (line 79)
  • access: private
LoggerPatternConverter $head = null (line 69)
  • access: private
mixed $i (line 64)
  • access: private
string $pattern (line 84)
  • var: pattern to parse
  • access: private
mixed $patternLength (line 63)
  • access: private
mixed $state (line 61)
  • access: private
LoggerPatternConverter $tail = null (line 74)
  • access: private
Methods
addConverter (line 321)
  • access: public
void addConverter ( $pc)
  • $pc
addToList (line 101)
  • access: public
void addToList (LoggerPatternConverter $pc)
extractOption (line 114)
  • access: public
string extractOption ()
extractPrecisionOption (line 130)

The option is expected to be in decimal and positive. In case of error, zero is returned.

  • access: public
void extractPrecisionOption ()
finalizeConverter (line 240)
  • access: public
void finalizeConverter ( $c)
  • $c
parse (line 149)

Parser.

  • return: Returns $this->head.
  • access: public
Constructor __construct (line 91)

Constructor

  • access: public
LoggerPatternParser __construct (string $pattern)
  • string $pattern
Class Constants
CLASS_LOCATION_CONVERTER = 1002 (line 47)
CONVERTER_STATE = 1 (line 39)
DATE_FORMAT_ABSOLUTE = 'H:i:s' (line 58)
DATE_FORMAT_DATE = 'd M Y H:i:s,u' (line 59)
DATE_FORMAT_ISO8601 = 'Y-m-d H:i:s,u' (line 57)
DOT_STATE = 3 (line 41)
ESCAPE_CHAR = '%' (line 36)
FILE_LOCATION_CONVERTER = 1003 (line 48)
FULL_LOCATION_CONVERTER = 1000 (line 45)
LEVEL_CONVERTER = 2002 (line 53)
LINE_LOCATION_CONVERTER = 1004 (line 49)
LITERAL_STATE = 0 (line 38)
MAX_STATE = 5 (line 43)
MESSAGE_CONVERTER = 2004 (line 55)
METHOD_LOCATION_CONVERTER = 1001 (line 46)
MINUS_STATE = 2 (line 40)
MIN_STATE = 4 (line 42)
NDC_CONVERTER = 2003 (line 54)
RELATIVE_TIME_CONVERTER = 2000 (line 51)
THREAD_CONVERTER = 2001 (line 52)

Documentation generated on Sat, 18 Feb 2012 22:32:26 +0000 by phpDocumentor 1.4.3