tanakahisateru / pinoco

Web site development framework using PHP and (mainly) PHPTAL
http://tanakahisateru.github.io/pinoco/
Other
43 stars 10 forks source link

Ad-hoc method extending with closure to Vars #47

Closed tanakahisateru closed 12 years ago

tanakahisateru commented 12 years ago

Pinoco_Vars has registerAsLazy to access field dynamically and seamlessly, but lazy/dynamic property can't be take any parameter. More simply I want an object extending way just like JavaScript functions in objects, Ruby's singleton methods or such as. It will be alternative traits for PHP5.3.

Perhaps introducing $self argument would be needed. I guess it will be like Python's way than Ruby...

tanakahisateru commented 12 years ago

Finished.