💡 add PhpDoc to AttributeImage methods

This commit is contained in:
Pierre Goiffon
2019-01-29 11:07:47 +01:00
parent 3b16d33775
commit 2cf3408023

View File

@@ -1299,7 +1299,7 @@ class AttributeDashboard extends AttributeDefinition
{
return '';
}
/**
* @inheritdoc
*/
@@ -7334,6 +7334,16 @@ class AttributeImage extends AttributeBlob
return '<div class="'.$sCssClasses.'" style="width: '.$iMaxWidthPx.'; height: '.$iMaxHeightPx.';"><span class="helper-middle"></span>'.$sRet.'</div>';
}
/**
* @param string $sUrl
* @param int $iMaxWidthPx
* @param int $iMaxHeightPx
*
* @return string
*
* @since 2.6.0 new private method
* @since 2.7.0 change visibility to protected
*/
protected function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) {
return '<img src="'.$sUrl.'" style="max-width: '.$iMaxWidthPx.'; max-height: '.$iMaxHeightPx.'">';
}
@@ -7343,6 +7353,9 @@ class AttributeImage extends AttributeBlob
* @param \DBObject $oHostObject
*
* @return null|string
*
* @since 2.6.0 new private method
* @since 2.7.0 change visibility to protected
*/
protected function GetAttributeImageFileUrl($value, $oHostObject) {
if (!is_object($value)) {