Elgg  Version 5.0
EntityIcon.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg;
3 
7 interface EntityIcon {
8 
17  public function saveIconFromUploadedFile(string $input_name, string $type = 'icon', array $coords = []): bool;
18 
27  public function saveIconFromLocalFile(string $filename, string $type = 'icon', array $coords = []): bool;
28 
37  public function saveIconFromElggFile(\ElggFile $file, string $type = 'icon', array $coords = []): bool;
38 
47  public function getIcon(string $size, string $type = 'icon'): \ElggIcon;
48 
55  public function deleteIcon(string $type = 'icon'): bool;
56 
65  public function getIconURL(array $params): string;
66 
75  public function getIconLastChange(string $size, string $type = 'icon'): ?int;
76 
84  public function hasIcon(string $size, string $type = 'icon'): bool;
85 }
Entities that support icons should implement this interface.
Definition: EntityIcon.php:7
$input_name
Definition: crop.php:24
$params
Saves global plugin settings.
Definition: save.php:13
$type
Definition: delete.php:22
$size
Definition: thumb.php:23
Entity icon class.
Definition: ElggIcon.php:8