Re: Cloned Object Behavior
| From: | Christian Weiske | Date: | Sun, 02 Jan 2011 14:19:46 +0000 |
| Subject: | Re: Cloned Object Behavior | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30892@lists.php.net to get a copy of this message | ||
Hello Alan,
> If I clone a format object in Spreadsheet_Excel_Writer, then modify
> the properties of the clone, those are not reflected in the final
> output. Example (I've snipped irrelevant properties from the print_r()
> output)
>
> As you can see, the underline property has been set in the clone, but
> does not appear in the output. Is this normal behavior, a peculiarity
> of cloned objects, or a bug in Spreadsheet_Excel_Writer?
A clone is not a reference, which means after it's cloned, it's a
separate object.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc