Author: grobmeier
Date: Thu Jul  2 13:02:07 2009
New Revision: 790576

URL: http://svn.apache.org/viewvc?rev=790576&view=rev
Log:
moved global vars to class members

Modified:
    incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php

Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php?rev=790576&r1=790575&r2=790576&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php Thu Jul  
2 13:02:07 2009
@@ -21,18 +21,6 @@
  */
 
 /**
- * String constant designating no time information. Current value of
- * this constant is <b>NULL</b>.
- */
-define ('LOG4PHP_LOGGER_LAYOUT_NULL_DATE_FORMAT',   'NULL');
-
-/**
- * String constant designating relative time. Current value of
- * this constant is <b>RELATIVE</b>.
- */
-define ('LOG4PHP_LOGGER_LAYOUT_RELATIVE_TIME_DATE_FORMAT', 'RELATIVE');
-
-/**
  * TTCC layout format consists of time, thread, category and nested
  * diagnostic context information, hence the name.
  * 
@@ -55,6 +43,20 @@
  */
 class LoggerLayoutTTCC extends LoggerLayout {
 
+       /**
+        * String constant designating no time information. Current value of
+        * this constant is <b>NULL</b>.
+        */
+        // TODO: not used?
+       const LOG4PHP_LOGGER_LAYOUT_NULL_DATE_FORMAT = 'NULL';
+       
+       /**
+        * String constant designating relative time. Current value of
+        * this constant is <b>RELATIVE</b>.
+        */
+        // TODO: not used?
+       const LOG4PHP_LOGGER_LAYOUT_RELATIVE_TIME_DATE_FORMAT = 'RELATIVE';
+       
     // Internal representation of options
     protected $threadPrinting    = true;
     protected $categoryPrefixing = true;


Reply via email to