mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Added more inline doc
This commit is contained in:
parent
09cf9995dd
commit
2ace9873af
@ -39,20 +39,22 @@ class LogoImage
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the URL of the icon in desired size (width + height)
|
* Returns the URL of the logo image in desired maximum sizes (width and/or height)
|
||||||
*
|
*
|
||||||
* @param int $maxWidth in px
|
* @param int|null $maxWidth the maximum width in pixel
|
||||||
* @param int $maxHeight in px
|
* @param int|null $maxHeight the maximum width in pixel
|
||||||
* @param bool $autoResize automatically resize to given size if not available yet
|
* @param bool $autoResize automatically resize to given size if not available yet
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public static function getUrl($maxWidth = null, $maxHeight = null, $autoResize = true)
|
public static function getUrl($maxWidth = null, $maxHeight = null, $autoResize = true)
|
||||||
{
|
{
|
||||||
if ($maxWidth === null) {
|
if ($maxWidth === null) {
|
||||||
|
// Will change in future!
|
||||||
$maxWidth = 300;
|
$maxWidth = 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($maxHeight === null) {
|
if ($maxHeight === null) {
|
||||||
|
// Will change in future!
|
||||||
$maxHeight = 40;
|
$maxHeight = 40;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user