Elgg  Version 1.11
Variables
view.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_get_page_owner_entity()
 View an avatar. More...
 
 $size = strtolower(get_input('size'))
 
if(!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar'))) if(!$user$user_guid = $user->getGUID()
 
 $filehandler = new ElggFile()
 
$filehandler owner_guid = $user_guid
 
 $success = false
 
 try
 

Variable Documentation

$filehandler = new ElggFile()

Definition at line 25 of file view.php.

$size = strtolower(get_input('size'))
Examples:
/root/Elgg/engine/lib/output.php, and /root/Elgg/engine/lib/views.php.

Definition at line 10 of file view.php.

$success = false

Definition at line 29 of file view.php.

View an avatar.

Definition at line 7 of file view.php.

if (!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar'))) if (!$user) $user_guid = $user->getGUID()

Definition at line 22 of file view.php.

$filehandler owner_guid = $user_guid

Definition at line 26 of file view.php.

try
Initial value:
{
if ($filehandler->open("read")) {
if ($contents = $filehandler->read($filehandler->getSize())) {
$success = true;
}
}
elgg_log("Unable to get avatar for user with GUID $user_guid", 'ERROR');
}
if (!$success) {
$url = "_graphics/icons/default/{$size}.png";
}
header("Content-type: image/jpeg", true)
$success
Definition: view.php:29
elgg_normalize_url($url)
Definition: output.php:311
if($footer) $contents
Definition: module.php:48
$e
Definition: metadata.php:12
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
$url
Definition: exceptions.php:24
$filehandler
Definition: view.php:25
elgg_log($message, $level= 'NOTICE')
Display or log a message.
Definition: elgglib.php:933
clearfix elgg elgg elgg elgg page header
Definition: admin.php:127

Definition at line 31 of file view.php.