Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-25 Thread Daniel Schierbeck
M Saleh Eg wrote: OR you could control ur method and have optional arguments in ur argument list and decide what to do according to that. e.g. public function _construct($param1=0, $param2=, $param3=null) { if($param1) if($param2) if($param3) } $obj=new

Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-25 Thread M Saleh EG
Exactly Daniel ! I should've mentioned that too. Thanx for making it clear. On Mon, 25 Oct 2004 15:45:36 +0200, Daniel Schierbeck [EMAIL PROTECTED] wrote: M Saleh Eg wrote: OR you could control ur method and have optional arguments in ur argument list and decide what to do according to

Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-25 Thread Daniel Schierbeck
M Saleh Eg wrote: Exactly Daniel ! I should've mentioned that too. Thanx for making it clear. No problem 8) -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/registerr=6584 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: overiding functions (constructors mostly)

2004-10-24 Thread Daniel Schierbeck
Walter Wojcik wrote: I want to override the constructor for a class i am writing but when i try it says i cant redefine it. Is the a whay to have two (or more) functions with the same name that accept different agrumants and calls the right one based on the arguments (it would have to be based on

Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-24 Thread M Saleh EG
OR you could control ur method and have optional arguments in ur argument list and decide what to do according to that. e.g. public function _construct($param1=0, $param2=, $param3=null) { if($param1) if($param2) if($param3) } $obj=new className(1); //Or