Re: cvs: php4 /pear/Crypt CBC.php

From: Date: Mon, 23 Apr 2001 20:57:37 +0000
Subject: Re: cvs: php4 /pear/Crypt CBC.php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-295@lists.php.net to get a copy of this message
> Since you inherit PEAR, it is better to use $this->raiseError(). That > way the user can set default error handling in the Crypt_CBC object. Thanks ... I just changed it. :) However, even on an error, the constructor doesn't return a Pear_Error object (or Crypt_CBC_Error object). I don't need to do something like this, do I? if (something bad) { $this = PEAR::raiseError(...) return $this; } How can you get the constructor of a class to "construct" a class of some other kind? - Colin

« previous php.pear.dev (#295) next »