Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Elgg
EntityIcon
saveIconFromLocalFile
Elgg\EntityIcon::saveIconFromLocalFile PHP Method
EntityIcon Interface Documentation
Show file
Open project: elgg/elgg
saveIconFromLocalFile()
public
method
Saves icons using a local file as the source.
public
saveIconFromLocalFile
(
string
$filename
,
string
$type
= 'icon',
array
$coords
= [] ) :
boolean
$filename
string
The full path to the local file
$type
string
The name of the icon. e.g., 'icon', 'cover_photo'
$coords
array
An array of cropping coordinates x1, y1, x2, y2
return
boolean
public function saveIconFromLocalFile($filename, $type = 'icon', array $coords = array());
EntityIcon
deleteIcon
getIcon
getIconLastChange
getIconURL
hasIcon
saveIconFromElggFile
saveIconFromLocalFile
saveIconFromUploadedFile