[Petal] [PATCH] Options via constructor rather than
package globals
Grant McLean
grant at mclean.net.nz
Fri Jun 6 08:46:07 BST 2003
Steve Purkis wrote:
> 2. cascade-able accessor methods which let you do:
>
> $template
> ->language('fr')
> ->input('HTML')
> ->output('XHTML');
The accessors as I implemented them in the patch are getters
rather than setters or getter/setters. I deliberatly avoided
making them do two things simply because I didn't need that
functionality. What I did need, was the ability to get at
the property values from various parts of the code. If the
accessors were changed to return $self then they would no
longer be accessors.
Regards
Grant
More information about the Petal
mailing list