Elgg  Version 1.11
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

$filehandler = new ElggFile()

Definition at line 20 of file crop.php.

◆ $filename

$filename = $filehandler->getFilenameOnFilestore()

Definition at line 23 of file crop.php.

◆ $files

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

Definition at line 36 of file crop.php.

◆ $guid

$guid = get_input('guid')

Avatar crop action.

Definition at line 7 of file crop.php.

◆ $icon_sizes

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

$owner = get_entity($guid)

Definition at line 8 of file crop.php.

◆ $view

$view = 'river/user/default/profileiconupdate'

◆ $x1

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

Definition at line 15 of file crop.php.

◆ $x2

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

Definition at line 17 of file crop.php.

◆ $y1

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

Definition at line 16 of file crop.php.

◆ $y2

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

Definition at line 18 of file crop.php.

◆ icontime

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

Definition at line 60 of file crop.php.

◆ owner_guid

$filehandler owner_guid = $owner->getGUID()

Definition at line 21 of file crop.php.

◆ x1

$owner x1 = $x1

Definition at line 62 of file crop.php.

◆ x2

$owner x2 = $x2

Definition at line 63 of file crop.php.

◆ y1

$owner y1 = $y1

Definition at line 64 of file crop.php.

◆ y2

$owner y2 = $y2

Definition at line 65 of file crop.php.