ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUserAvatarFile.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
10{
14 protected $size = '';
15
20 public function __construct($size)
21 {
22 $this->size = $size;
23 }
24
28 public function getUrl() : string
29 {
30 return \ilWACSignedPath::signFile(\ilUtil::getImagePath('no_photo_' . $this->size . '.jpg'));
31 }
32}
An exception for terminatinating execution or to throw for unit testing.
Class ilUserAvatarBase.
Class ilUserAvatarFile.
__construct($size)
ilUserAvatarFile constructor.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)