Author: grobmeier
Date: Fri May 22 10:14:10 2009
New Revision: 777450

URL: http://svn.apache.org/viewvc?rev=777450&view=rev
Log:
moved to php5 syntax

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

Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php?rev=777450&r1=777449&r2=777450&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php Fri May 
22 10:14:10 2009
@@ -43,7 +43,7 @@
      * <b>LocationInfo</b> option of that appender as well.
      * @var boolean
      */
-    var $locationInfo = false;
+    private $locationInfo = false;
     
     /**
      * The <b>Title</b> option takes a String value. This option sets the
@@ -51,13 +51,12 @@
      * Defaults to 'Log4php Log Messages'.
      * @var string
      */
-    var $title = "Log4php Log Messages";
+    private $title = "Log4php Log Messages";
     
     /**
      * Constructor
      */
-    function LoggerLayoutHtml() {
-        return;
+    public function __construct() {
     }
     
     /**
@@ -71,7 +70,7 @@
      * or a {...@link LoggerAppenderMailEvent} then make sure to set the
      * <b>LocationInfo</b> option of that appender as well.
      */
-    function setLocationInfo($flag) {
+    public function setLocationInfo($flag) {
         if (is_bool($flag)) {
             $this->locationInfo = $flag;
         } else {
@@ -82,7 +81,7 @@
     /**
      * Returns the current value of the <b>LocationInfo</b> option.
      */
-    function getLocationInfo() {
+    public function getLocationInfo() {
         return $this->locationInfo;
     }
     
@@ -91,21 +90,21 @@
      * document title of the generated HTML document.
      * Defaults to 'Log4php Log Messages'.
      */
-    function setTitle($title) {
+    public function setTitle($title) {
         $this->title = $title;
     }
 
     /**
      * @return string Returns the current value of the <b>Title</b> option.
      */
-    function getTitle() {
+    public function getTitle() {
         return $this->title;
     }
     
     /**
      * @return string Returns the content type output by this layout, i.e 
"text/html".
      */
-    function getContentType() {
+    public function getContentType() {
         return "text/html";
     }
     
@@ -113,7 +112,7 @@
      * @param LoggerLoggingEvent $event
      * @return string
      */
-    function format($event) {
+    public function format($event) {
         $sbuf = PHP_EOL . "<tr>" . PHP_EOL;
     
         $sbuf .= "<td>";
@@ -169,7 +168,7 @@
     /**
      * @return string Returns appropriate HTML headers.
      */
-    function getHeader() {
+    public function getHeader() {
         $sbuf = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 
Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\";>" . PHP_EOL;
         $sbuf .= "<html>" . PHP_EOL;
         $sbuf .= "<head>" . PHP_EOL;
@@ -202,7 +201,7 @@
     /**
      * @return string Returns the appropriate HTML footers.
      */
-    function getFooter() {
+    public function getFooter() {
         $sbuf = "</table>" . PHP_EOL;
         $sbuf .= "<br>" . PHP_EOL;
         $sbuf .= "</body></html>";


Reply via email to