Elgg  Version 3.0
EntityIcon.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg;
3 
7 interface EntityIcon {
16  public function saveIconFromUploadedFile($input_name, $type = 'icon', array $coords = []);
17 
26  public function saveIconFromLocalFile($filename, $type = 'icon', array $coords = []);
27 
36  public function saveIconFromElggFile(\ElggFile $file, $type = 'icon', array $coords = []);
37 
46  public function getIcon($size, $type = 'icon');
47 
54  public function deleteIcon($type = 'icon');
55 
64  public function getIconURL($params);
65 
74  public function getIconLastChange($size, $type = 'icon');
75 
83  public function hasIcon($size, $type = 'icon');
84 }
if(!array_key_exists($filename, $text_files)) $file
Entities that support icons should implement this interface.
Definition: EntityIcon.php:7
$params
Saves global plugin settings.
Definition: save.php:13
$size
Definition: remove.php:24
$type
Definition: delete.php:21
Configuration exception.
if(!$entity instanceof ElggEntity) $input_name
Definition: default.php:14
$filename
if(!$owner||!$owner->canEdit()) if(!$owner->hasIcon('master')) $coords
Definition: crop.php:18