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.

  • author: Marco Vassura
  • version: $Revision: 556801 $
  • since: 0.3

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


	
			
Variable Summary
Method Summary
LoggerPatternParser LoggerPatternParser (string $pattern)
void addConverter ( $pc)
string extractOption ()
void finalizeConverter ( $c)
void parse ()
Variables
mixed $currentLiteral (line 80)
LoggerFormattingInfo $formattingInfo (line 97)
LoggerPatternConverter $head = null (line 87)
mixed $i (line 82)
string $pattern (line 102)
  • var: pattern to parse
mixed $patternLength (line 81)
mixed $state (line 79)
LoggerPatternConverter $tail = null (line 92)
Methods
Constructor LoggerPatternParser (line 109)

Constructor

LoggerPatternParser LoggerPatternParser (string $pattern)
  • string $pattern
addConverter (line 387)
void addConverter ( $pc)
  • $pc
addToList (line 122)
void addToList (LoggerPatternConverter $pc)
extractOption (line 138)
string extractOption ()
extractPrecisionOption (line 155)

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

void extractPrecisionOption ()
finalizeConverter (line 278)
void finalizeConverter ( $c)
  • $c
parse (line 173)
void parse ()

Documentation generated by phpDocumentor 1.3.2