Elgg  Version master
Public Member Functions | Protected Member Functions | List of all members
Elgg\Entity\CropIcon Class Reference

Generic action listener to support cropping an existing icon. More...

Public Member Functions

 __invoke (\Elgg\Event $event)
 Set inputs required to support cropping an existing icon. More...
 

Protected Member Functions

 prepareUpload (int $entity_guid, string $input_name, string $icon_type)
 Prepare a single existing icon for cropping. More...
 
 arrayToUploadedFile ($file_data)
 convert $_FILES array to UploadedFile More...
 

Detailed Description

Generic action listener to support cropping an existing icon.

Since
3.1

Definition at line 12 of file CropIcon.php.

Member Function Documentation

Elgg\Entity\CropIcon::__invoke ( \Elgg\Event  $event)

Set inputs required to support cropping an existing icon.

Parameters
\Elgg\Event$event'action:validate', 'all'
Returns
void

Definition at line 21 of file CropIcon.php.

Elgg\Entity\CropIcon::arrayToUploadedFile (   $file_data)
protected

convert $_FILES array to UploadedFile

Parameters
array$file_datafile information array
Returns
false|UploadedFile

Definition at line 123 of file CropIcon.php.

Elgg\Entity\CropIcon::prepareUpload ( int  $entity_guid,
string  $input_name,
string  $icon_type 
)
protected

Prepare a single existing icon for cropping.

Parameters
int$entity_guidthe Entity GUID
string$input_nameinput name for the icon
string$icon_typename of the icon type
Returns
void

Definition at line 62 of file CropIcon.php.


The documentation for this class was generated from the following file: