Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * I use this as a proxy for the Mage object. Almost all Mage methods are wrapped. See below example of a factory and configuration wrapper
- */
- class MartinDines_Mage_Adapter
- {
- /**
- * @param string $modelClass
- * @param array $arguments
- * @return mixed
- */
- public function getModel($modelClass = '', $arguments = array())
- {
- return Mage::getModel($modelClass, $arguments);
- }
- /**
- * Retrieve config value for store by path
- *
- * @param string $path
- * @param mixed $store
- * @return mixed
- */
- public function getStoreConfig($path, $store = null)
- {
- return Mage::getStoreConfig($path, $store);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement