|
Posted by ZeldorBlat on 04/22/07 20:13
On Apr 21, 5:16 pm, "_mario.lat" <n...@libero.it> wrote:
> Hallo,
> I have a class A to manage a grout of classes B.
> (for example "Class Garden" and "Class Flower" which are in garden)
> If i clone A (Garden) I'd like to clone also B (Folwers).
> How cn I do?
> thank you in advance,
> Mario
Look at this:
<http://www.php.net/manual/en/language.oop5.cloning.php>
In particular, you need to define a __clone() method in your Garden
class. This method should, in turn, use the clone operator on all of
the Flowers in the Garden.
Navigation:
[Reply to this message]
|