|
|||||||
| PHP Discussion and technical support for using and deploying PHP based websites. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Overriding/Overloading in PHP. Help please.
I have 2 classes like below.
PHP Code:
Quote:
__________________
<Javascript Smooth Scroller> | <Free Multi Transition Banner > Nothing builds self-esteem and self-confidence like accomplishment |
|
#2
|
|||
|
|||
|
You assign two arguments in the first, and you will need to do the same in the second one. If you want dynamic arguments, you will need to use the func_x_arg(s) functions instead, and don't assign any arguments any where. If you do, you won't be able to assign arguments as references.
I also don't think you can declare a protected function as global. You will need to choose. Either protected in both cases, or global. Last edited by dk_zero-cool; 03-10-2010 at 04:45 AM. |
|
#3
|
||||
|
||||
|
__________________
The first rule of Tautology Club is the first rule of Tautology Club. |
|
#4
|
||||
|
||||
|
Thank you guys, It is working fine once I added make the variable count of subclass function to 2.
Greate!
__________________
<Javascript Smooth Scroller> | <Free Multi Transition Banner > Nothing builds self-esteem and self-confidence like accomplishment |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|