ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilUserAvatarFile.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
28  protected string $size;
29 
30  public function __construct(string $size)
31  {
32  $this->size = $size;
33  }
34 
35  public function getUrl(): string
36  {
37  return ilWACSignedPath::signFile(\ilUtil::getImagePath('placeholder/no_photo_' . $this->size . '.jpg'));
38  }
39 }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Class ilUserAvatarBase.
Class ilUserAvatarFile.
static signFile(string $path_to_file)