Re: Cloned Object Behavior
| From: | Christian Weiske | Date: | Sun, 02 Jan 2011 17:08:31 +0000 |
| Subject: | Re: Cloned Object Behavior | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30895@lists.php.net to get a copy of this message | ||
Hello Alan,
> Yes, this is what I would expect. The $format_bold object has the bold
> property; I clone it to $format_bold_ul and set the underline property
> on that, and I would expect that cells which have $format_bold_ul
> applied to them would have bold and underline, but all I get is bold,
> even though, according to the print_r() output, $format_bold_ul does
> indeed have the underline property set.
Ah, now I understand what you mean. Spreadsheet_Excel_Writer is PHP4
code, so it could be that cloning objects in it does not work.
--
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