Protected Member Functions | |
_getUrl () | |
_getDeleteCheckbox () |
Definition at line 34 of file Image.php.
_getDeleteCheckbox | ( | ) | [protected] |
Enter description here...
Reimplemented from Varien_Data_Form_Element_Image.
Definition at line 45 of file Image.php.
00046 { 00047 $html = ''; 00048 if ($attribute = $this->getEntityAttribute()) { 00049 if (!$attribute->getIsRequired()) { 00050 $html.= parent::_getDeleteCheckbox(); 00051 } 00052 else { 00053 $html.= '<input value="'.$this->getValue().'" id="'.$this->getHtmlId().'_hidden" type="hidden" class="required-entry" />'; 00054 $html.= '<script type="text/javascript"> 00055 syncOnchangeValue(\''.$this->getHtmlId().'\', \''.$this->getHtmlId().'_hidden\'); 00056 </script>'; 00057 } 00058 } 00059 else { 00060 $html.= parent::_getDeleteCheckbox(); 00061 } 00062 return $html; 00063 }
_getUrl | ( | ) | [protected] |
Get image preview url
Reimplemented from Varien_Data_Form_Element_Image.
Definition at line 36 of file Image.php.
00037 { 00038 $url = false; 00039 if ($this->getValue()) { 00040 $url = Mage::getBaseUrl('media').'catalog/product/'. $this->getValue(); 00041 } 00042 return $url; 00043 }