Elgg
Version 2.3
engine
classes
Elgg
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
= array());
17
26
public
function
saveIconFromLocalFile
(
$filename
,
$type
=
'icon'
, array
$coords
= array());
27
36
public
function
saveIconFromElggFile
(\
ElggFile
$file
,
$type
=
'icon'
, array
$coords
= array());
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
}
$coords
if(! $owner||!($owner instanceof ElggUser)||! $owner->canEdit()) $coords
Definition:
crop.php:15
$params
$params
Definition:
login.php:72
ElggFile
Definition:
ElggFile.php:32
$size
$size
Definition:
default.php:20
$input_name
$input_name
Definition:
item.php:14
$type
if(! $display_name) $type
Definition:
delete.php:27
Elgg\EntityIcon
Entities that support icons should implement this interface.
Definition:
EntityIcon.php:7
Elgg\EntityIcon\getIconLastChange
getIconLastChange($size, $type='icon')
Returns the timestamp of when the icon was changed.
Elgg\EntityIcon\saveIconFromElggFile
saveIconFromElggFile(\ElggFile $file, $type='icon', array $coords=array())
Saves icons using a file located in the data store as the source.
Elgg\EntityIcon\saveIconFromLocalFile
saveIconFromLocalFile($filename, $type='icon', array $coords=array())
Saves icons using a local file as the source.
Elgg\EntityIcon\getIcon
getIcon($size, $type='icon')
Returns entity icon as an ElggIcon object The icon file may or may not exist on filestore.
Elgg\EntityIcon\getIconURL
getIconURL($params)
Returns a URL of the icon.
Elgg\EntityIcon\hasIcon
hasIcon($size, $type='icon')
Returns if the entity has an icon of the passed type.
Elgg\EntityIcon\saveIconFromUploadedFile
saveIconFromUploadedFile($input_name, $type='icon', array $coords=array())
Saves icons using an uploaded file as the source.
Elgg\EntityIcon\deleteIcon
deleteIcon($type='icon')
Removes all icon files and metadata for the passed type of icon.
Elgg
Save menu items.
$filename
$filename
Definition:
plugin_text_file.php:6
$file
if(!array_key_exists($filename, $text_files)) $file
Definition:
plugin_text_file.php:29
Generated on Fri Aug 29 2025 00:00:46 for Elgg by
1.9.1