* along with PHP-gettext; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * @copyright 2004-2011 The SquirrelMail Project Team
+ * @copyright 2004-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
}
/**
+ * Constructor (PHP5 style, required in some future version of PHP)
* constructor that requires StreamReader object
* @param object $Reader
* @return boolean false, if some error with stream
+TODO: Constructors should not return anything.
*/
- function gettext_reader($Reader) {
+ function __construct($Reader) {
$MAGIC1 = (int) ((222) | (18<<8) | (4<<16) | (149<<24));
$MAGIC2 = (int) ((149) | (4<<8) | (18<<16) | (222<<24));
$this->_HASHED = array();
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * constructor that requires StreamReader object
+ * @param object $Reader
+ * @return boolean false, if some error with stream
+TODO: Constructors should not return anything.
+ */
+ function gettext_reader($Reader) {
+ return self::__construct($Reader);
+ }
+
/**
* @param boolean $translations do translation have to be loaded
*/