note 17566 added to language.oop.constructor

From: Date: Fri, 14 Dec 2001 14:43:41 +0000
Subject: note 17566 added to language.oop.constructor
Groups: php.notes 
Request: Send a blank email to php-notes+get-22609@lists.php.net to get a copy of this message
can i fail constructor? how ? details: i need effect similar to ObjectPascal routine >>fail<<, causing, when called in constructor, abortion of constructor and occurence of an exception. why? see this: class someClass{ var $one_hundred_params; function someClass($param){ if(!($one_hundred_params = failable_func($param))) >>fail<<<; } function someWork(){ do_something_with($one_hundred_params); } } can anyone help me ? -- http://www.php.net/manual/en/language.oop.constructor.php http://master.php.net/manage/user-notes.php?action=edit+17566 http://master.php.net/manage/user-notes.php?action=delete+17566 http://master.php.net/manage/user-notes.php?action=reject+17566

« previous php.notes (#22609) next »