Метод |
Описание |
|
deleteIcon ( string $type = 'icon' ) : boolean |
Removes all icon files and metadata for the passed type of icon. |
|
getIcon ( string $size, string $type = 'icon' ) : ElggIcon |
Returns entity icon as an ElggIcon object
The icon file may or may not exist on filestore |
|
getIconLastChange ( string $size, string $type = 'icon' ) : integer | null |
Returns the timestamp of when the icon was changed. |
|
getIconURL ( array $params ) : string |
Returns a URL of the icon. |
|
hasIcon ( string $size, string $type = 'icon' ) : boolean |
Returns if the entity has an icon of the passed type. |
|
saveIconFromElggFile ( ElggFile $file, string $type = 'icon', array $coords = [] ) : boolean |
Saves icons using a file located in the data store as the source. |
|
saveIconFromLocalFile ( string $filename, string $type = 'icon', array $coords = [] ) : boolean |
Saves icons using a local file as the source. |
|
saveIconFromUploadedFile ( string $input_name, string $type = 'icon', array $coords = [] ) : boolean |
Saves icons using an uploaded file as the source. |
|