[eluser]BrianDHall[/eluser]
I have a question - is there any method, magic or otherwise, that would allow setting a datamapper object property to a value with a function? For instance, I have:
$details = new Imagedetail();
$details->set_filesize($imgsize)
->set_width($imginfo[0])
->set_height($imginfo[1])
->set_mime($imginfo['mime']);
Basically I would like to use method chaining magically, but I don't want to have to go to the work of creating a set_ function for every property in every model I have.
Is there something I could do to create this, or perhaps an addition of a magic function that could be made hidden inside DMZ?
I'm not very familiar with the magic functions of PHP5 anymore, but you seem to be a master at it