Mage_Adminhtml_Block_System_Config_Form_Field_Image Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Config_Form_Field_Image:

Varien_Data_Form_Element_Image Varien_Data_Form_Element_Abstract Varien_Data_Form_Abstract Varien_Object

List of all members.

Protected Member Functions

 _getUrl ()


Detailed Description

Definition at line 35 of file Image.php.


Member Function Documentation

_getUrl (  )  [protected]

Get image preview url

Returns:
string

Reimplemented from Varien_Data_Form_Element_Image.

Definition at line 43 of file Image.php.

00044     {
00045         $url = parent::_getUrl();
00046 
00047         $config = $this->getFieldConfig();
00048         /* @var $config Varien_Simplexml_Element */
00049         if (!empty($config->base_url)) {
00050             $el = $config->descend('base_url');
00051             $urlType = empty($el['type']) ? 'link' : (string)$el['type'];
00052             $url = Mage::getBaseUrl($urlType) . (string)$config->base_url . '/' . $url;
00053         }
00054 
00055         return $url;
00056     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:03 2009 for Magento by  doxygen 1.5.8