Saturday, December 3, 2011

My answer to "Few doubts in Lampcms ???"

This is my answer to a Question on Support site for LampCMS project


The factory in Urhere is not in User class. Urhere class extends LampcmsObject, so it uses factory in LampcmsObject. That class in the \Lampcms\Object.php file.

factory method even though is static, is inherited by sub-class - it's part of php 5.3 late static binding feature, where a new keyword "static" refers to the calling class. factory method then call constructor of the calling class.

Trust me, everything just works, and works pretty well.

No comments:

Post a Comment