logo       
Google Custom Search
    AddThis Social Bookmark Button

assigning to $this in constructor: msg#00244

Subject: assigning to $this in constructor
I think I was once able to assign to the $this reference in the
constructor of a php class. I don't seem to be able to do this anymore.
Is this new in 4.3?

Is there anyway to alter what object is returned from a php class
constructor? 

For instance, there might have been an error so you would return an
error object instead of the requested object.

Thanks,

Matt Friedman


-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>