getStore()->getConfig(self::XML_NODE_CONFIG_ENABLED); } /** * @return bool */ public function getPreviewSample() { return Mage::app()->getStore()->getConfig(self::XML_NODE_PATH_PREVIEW_SAMPLE); } /** * @return array */ public function getAllowedAttributes() { if (null === $this->_allowedAttributes) { $this->_allowedAttributes = array_filter(explode(',', Mage::app()->getStore()->getConfig( self::XML_NODE_PATH_ALLOWED_ATTRIBUTES))); } return $this->_allowedAttributes; } /** * @return array */ public function getAttributes() { $attributes = (array) Mage::app()->getConfig()->getNode(self::XML_NODE_PATH_DEFAULT_ATTRIBUTES)->asArray(); if (empty($attributes)) { return array(); } return array_keys($attributes); } /** * @return string */ public function getProductMediaPath() { return Mage::getSingleton('catalog/product_media_config')->getBaseMediaPath(); } /** * @param $path * @return array */ public function getImageSize($path) { return getimagesize($path); } }