Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Icons
SetUserIconFileHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Icons
;
4
10
class
SetUserIconFileHandler
{
11
19
public
function
__invoke
(\
Elgg
\
Event
$event) {
20
$icon
= $event->getValue();
21
22
$entity
= $event->getEntityParam();
23
$size
= $event->getParam(
'size'
,
'medium'
);
24
25
$icon
->owner_guid =
$entity
->guid;
26
$icon
->setFilename(
"profile/{$entity->guid}{$size}.jpg"
);
27
28
return
$icon
;
29
}
30
}
Elgg\Icons\SetUserIconFileHandler
Sets user icon file.
Definition:
SetUserIconFileHandler.php:10
Elgg
Definition:
ActionsService.php:3
$icon
if(function_exists('apache_get_version')) $icon
Definition:
generic.php:49
Elgg\Icons
Definition:
AddFontAwesomeClassesHandler.php:3
$entity
$entity
Definition:
reset.php:8
$size
$size
Definition:
thumb.php:23
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Elgg\Icons\SetUserIconFileHandler\__invoke
__invoke(\Elgg\Event $event)
Set user icon file.
Definition:
SetUserIconFileHandler.php:19
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11