Posted by Janwillem Borleffs on 11/21/96 11:24
Flibble wrote:
> If you look at the property $updatedFields it should end up populated
> with two elements, "Name" & "Age". However they are populated with
> zero values.
> The curious thing is that inside the __set function the property has
> the correct values in it, as soon as it moves outside the method they
> are zero.....Can't see why it is doing this (might be code blind by
> now though :( )
>
On my machine, a print_r on $updateFields produces:
Array
(
[0] => Name
[1] => Age
)
and a print_r on $itemArray produces:
Array
(
[Name] => Me
[Age] => 30
)
So your class appears to work as it should.
JW
Navigation:
[Reply to this message]
|