Magento Tutorials

Magento Static Functions

When you open up app/Mage.php, you’ll see that the class declaration of Mage is final. The ‘final’ keyword prevents this class from being overridden. And you’ll see that every function is a magento static function, for example: public static function getVersion(). A static function means that you do not need to instantiate the class to use the method. I will listed out some of most useful methods available here. If …

Continue reading