Total Posts: 41
welcome to the club. Although Magento is just php, Varien takes so much use of inheritance that it is nearly impossible to understand what magento is doing. I do not say that inheritance is a bad thing, just the lack of documentation or support is the bad thing.
Hope this helps you a bit:
Look at lib/Varien/Object.php. This is the base class of all other classes. There you can find a method __call($method, $args) which is a magic function in php (search php docu for further info). Each time a method cannot be found in the tree of inheritance this magic method will be called.
What Varien is doing here:
Assume for example a call of $this->getSomeObject(). They recognize that the method starts with “get”, convert the rest ("SomeObject") to “some_object” and check their data-array (member $_data) for an entry “some_object”. If this entry exists, Varien returns the value, if not they return null.
Thats their magic.