cvs: pear /I18N/Messages Translate.php

From: Date: Tue, 12 Feb 2002 17:25:05 +0000
Subject: cvs: pear /I18N/Messages Translate.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2405@lists.php.net to get a copy of this message
cain Tue Feb 12 12:25:05 2002 EDT Modified files: /pear/I18N/Messages Translate.php Log: - made the constructor work properly Index: pear/I18N/Messages/Translate.php diff -u pear/I18N/Messages/Translate.php:1.1 pear/I18N/Messages/Translate.php:1.2 --- pear/I18N/Messages/Translate.php:1.1 Tue Feb 12 11:33:48 2002 +++ pear/I18N/Messages/Translate.php Tue Feb 12 12:25:05 2002 @@ -16,7 +16,7 @@ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ // -// $Id: Translate.php,v 1.1 2002/02/12 16:33:48 cain Exp $ +// $Id: Translate.php,v 1.2 2002/02/12 17:25:05 cain Exp $ # we have to move this to some more common place in PEAR # this is just a quick hack here :-) @@ -63,8 +63,9 @@ * @author * @version */ - function __construct( ) + function __construct( $dsn , $options ) { + parent::Tree_OptionsDB( $dsn , $options ); # FIXXME pass a resource to the constructor which can be used to translate the # string, it should be possible to use XML, DB, or whatever # currently, as you can see there is only a DB interface hardcoded in here @@ -78,9 +79,9 @@ * @author * @version */ - function I18N_Messages_Translate() + function I18N_Messages_Translate( $dsn , $options=array() ) { - return __construct(); + return $this->__construct( $dsn , $options ); } /**

« previous php.pear.cvs (#2405) next »