Class LoggerTransform

Description

Utility class for transforming strings.

  • author: Marco Vassura
  • since: 0.7

Located in /helpers/LoggerTransform.php (line 35)


	
			
Method Summary
static void appendEscapingCDATA ( &$buf, string $str, string $buf)
static string escapeTags (string $input)
Methods
static method appendEscapingCDATA (line 73)

Ensures that embeded CDEnd strings (]]>) are handled properly within message, NDC and throwable tag text.

static void appendEscapingCDATA ( &$buf, string $str, string $buf)
  • string $buf: String holding the XML data to this point. The initial CDStart (<![CDATA[) and final CDEnd (]]>) of the CDATA section are the responsibility of the calling method.
  • string $str: &str The String that is inserted into an existing CDATA Section within buf.
  • &$buf
static method escapeTags (line 47)

This method takes a string which may contain HTML tags (ie, &lt;b&gt;, &lt;table&gt;, etc) and replaces any '&lt;' and '&gt;' characters with respective predefined entity references.

  • return: The input string with the characters '&lt;' and '&gt;' replaced with &amp;lt; and &amp;gt; respectively.
static string escapeTags (string $input)
  • string $input: The text to be converted.

Documentation generated by phpDocumentor 1.3.2