🚸 Change AttributeImage methods visibility to allow overrides

This commit is contained in:
Pierre Goiffon
2019-01-28 13:56:20 +01:00
parent 1ca4f993b0
commit 6bbc543ac1

View File

@@ -7334,7 +7334,7 @@ class AttributeImage extends AttributeBlob
return '<div class="'.$sCssClasses.'" style="width: '.$iMaxWidthPx.'; height: '.$iMaxHeightPx.';"><span class="helper-middle"></span>'.$sRet.'</div>';
}
private function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) {
protected function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) {
return '<img src="'.$sUrl.'" style="max-width: '.$iMaxWidthPx.'; max-height: '.$iMaxHeightPx.'">';
}
@@ -7344,7 +7344,7 @@ class AttributeImage extends AttributeBlob
*
* @return null|string
*/
private function GetAttributeImageFileUrl($value, $oHostObject) {
protected function GetAttributeImageFileUrl($value, $oHostObject) {
if (!is_object($value)) {
return null;
}