Elgg  Version 1.9
Variables
crop.php File Reference

Go to the source code of this file.

Variables

 $guid = get_input('guid')
 Avatar crop action. More...
 
 $owner = get_entity($guid)
 
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $x1 = (int) get_input('x1', 0)
 
 $y1 = (int) get_input('y1', 0)
 
 $x2 = (int) get_input('x2', 0)
 
 $y2 = (int) get_input('y2', 0)
 
 $filehandler = new ElggFile()
 
$filehandler owner_guid = $owner->getGUID()
 
 $filename = $filehandler->getFilenameOnFilestore()
 
if(!file_exists($filename)) $icon_sizes = elgg_get_config('icon_sizes')
 
 $files = array()
 
foreach($icon_sizes as $name=> $size_info) $owner icontime = time()
 
$owner x1 = $x1
 
$owner x2 = $x2
 
$owner y1 = $y1
 
$owner y2 = $y2
 
 $view = 'river/user/default/profileiconupdate'
 

Variable Documentation

$filehandler = new ElggFile()

Definition at line 20 of file crop.php.

$filename = $filehandler->getFilenameOnFilestore()

Definition at line 23 of file crop.php.

$files = array()
Examples:
/root/Elgg/engine/lib/cache.php.

Definition at line 36 of file crop.php.

$guid = get_input('guid')

Avatar crop action.

Definition at line 7 of file crop.php.

if (!file_exists($filename)) $icon_sizes = elgg_get_config('icon_sizes')
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 31 of file crop.php.

$owner = get_entity($guid)

Definition at line 8 of file crop.php.

$view = 'river/user/default/profileiconupdate'
Examples:
/root/Elgg/engine/lib/cache.php, and /root/Elgg/engine/lib/views.php.

Definition at line 68 of file crop.php.

if (!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $x1 = (int) get_input('x1', 0)

Definition at line 15 of file crop.php.

$x2 = (int) get_input('x2', 0)

Definition at line 17 of file crop.php.

$y1 = (int) get_input('y1', 0)

Definition at line 16 of file crop.php.

$y2 = (int) get_input('y2', 0)

Definition at line 18 of file crop.php.

foreach ($icon_sizes as $name=> $size_info) $owner icontime = time()

Definition at line 60 of file crop.php.

number owner_guid = $owner->getGUID()

Definition at line 21 of file crop.php.

$owner x1 = $x1

Definition at line 62 of file crop.php.

$owner x2 = $x2

Definition at line 63 of file crop.php.

$owner y1 = $y1

Definition at line 64 of file crop.php.

$owner y2 = $y2

Definition at line 65 of file crop.php.