|
From: <yaw...@us...> - 2006-03-09 19:29:19
|
Revision: 11 Author: yawnster Date: 2006-03-09 11:29:11 -0800 (Thu, 09 Mar 2006) ViewCVS: http://svn.sourceforge.net/opendocumentphp/?rev=11&view=rev Log Message: ----------- - Small bug fixes within TestOutput.php. Fixed warning within __construct(). - Defined OpenDocumentFactory as the top-level class. @ Norman: its yawnster, not yanister :P Modified Paths: -------------- poc/src/OpenDocumentFactory.php poc/src/TestOutput.php Modified: poc/src/OpenDocumentFactory.php =================================================================== --- poc/src/OpenDocumentFactory.php 2006-03-09 08:44:32 UTC (rev 10) +++ poc/src/OpenDocumentFactory.php 2006-03-09 19:29:11 UTC (rev 11) @@ -4,7 +4,7 @@ * * @copyright GNU General Public License * @author Norman Markgraf <nma...@us...> - * @author Alex Latchford <yan...@us...> + * @author Alex Latchford <yaw...@us...> * @version $Revision$ * @package OpenDocument * @since 0.4.0 @@ -14,10 +14,10 @@ function __autoload($class_name) { // Classes in subdirectories have '_' instead of '/' or '\\' in their names. - require_once( strtr ( $class_name, "_", "/" ) . ".php" ); /* + require_once( strtr ( $class_name, "_", "/" ) . ".php" ); } -class OpenDocumentFactory { +final class OpenDocumentFactory { /** * Creates a OpenDocument. Modified: poc/src/TestOutput.php =================================================================== --- poc/src/TestOutput.php 2006-03-09 08:44:32 UTC (rev 10) +++ poc/src/TestOutput.php 2006-03-09 19:29:11 UTC (rev 11) @@ -4,7 +4,7 @@ * * @copyright GNU General Public License * @author Norman Markgraf <nma...@us...> - * @author Alex Latchford <yan...@us...> + * @author Alex Latchford <yaw...@us...> * @version $Revision$ * @package OpenDocument_Samples * @since 0.4.0 @@ -20,19 +20,11 @@ private $logger; function __construct() { - /* ***TO DO *** This raises a warning ... - // $conf = array( "mode" => 0600 ); - $this->logger = &Log_observer::factory( "file", "D:/PHP/OpenDocument.log", "OpenDocument", $conf ); - $this->logger = &Log_observer::factory( "console", "", "OpenDocument" ); - */ - - /* - Console output: - $this->logger = &Log_observer::factory( "console", "", "OpenDocument" ); - - File output: - $this->logger = &Log_observer::factory( "file", "OpenDocument.log", "OpenDocument" ); - */ + $conf = array( "mode" => 0600 ); + // File Output: + $this->logger = &Log::factory( "file", "OpenDocument.log", "OpenDocument", $conf ); + // Console Output: + $this->logger = &Log::factory( "console", "", "OpenDocument" ); } function makeMeta( $meta ) { @@ -176,8 +168,6 @@ $TestOutput->run($SingleDocument); } - - ?> <html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |