Class humhub\libs\LogoImage

Inheritancehumhub\libs\LogoImage

LogoImage

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$folder_images String Folder name inside the uploads directory humhub\libs\LogoImage
$height Integer Height of the image humhub\libs\LogoImage

Public Methods

Hide inherited methods

MethodDescriptionDefined By
delete() Deletes current logo humhub\libs\LogoImage
getPath() Returns the Path of the logo image humhub\libs\LogoImage
getUrl() Returns the URl of Logo Image humhub\libs\LogoImage
hasImage() Indicates there is a logo image humhub\libs\LogoImage
setNew() Sets a new logo image by given temp file humhub\libs\LogoImage

Property Details

$folder_images protected property

Folder name inside the uploads directory

protected String $folder_images 'logo_image'
$height protected property

Height of the image

protected Integer $height 40

Method Details

delete() public method

Deletes current logo

public void delete ( )
getPath() public method

Returns the Path of the logo image

public String getPath ( )
return String

Path to the logo image

throws \yii\base\Exception
getUrl() public method

Returns the URl of Logo Image

public String getUrl ( )
return String

Url of the profile image

throws \yii\base\Exception
hasImage() public method

Indicates there is a logo image

public Boolean hasImage ( )
return Boolean

Is there a logo image

throws \yii\base\Exception
setNew() public method

Sets a new logo image by given temp file

public void setNew ( \yii\web\UploadedFile $file )
$file \yii\web\UploadedFile
throws \yii\base\Exception