Public Member Functions | Data Fields | Protected Member Functions

ImageUploader Class Reference

Inheritance diagram for ImageUploader:
Inheritance graph
[legend]
Collaboration diagram for ImageUploader:
Collaboration graph
[legend]

Public Member Functions

 __construct (&$xmlArr, $formObj)
 setValue ($value)
 render ()

Data Fields

 $m_PicWidth
 $m_PicHeight
 $m_ThumbWidth
 $m_ThumbHeight
 $m_ThumbFolder
 $m_Preview

Protected Member Functions

 readMetaData (&$xmlArr)
 resizeImage ($sourceFileName, $destFileName, $width, $height, $quality)

Detailed Description

Definition at line 27 of file ImageUploader.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr,
formObj 
)

Initialize Element with xml array

Parameters:
array$xmlArr
Returns:
void

Reimplemented from FileUploader.

Definition at line 42 of file ImageUploader.php.

Here is the call graph for this function:


Member Function Documentation

readMetaData ( &$  xmlArr ) [protected]

Read array meta data, and store to meta object

Parameters:
array$xmlArr
Returns:
void

Reimplemented from FileUploader.

Definition at line 54 of file ImageUploader.php.

Here is the caller graph for this function:

render (  )

Render the element, according to the mode

Returns:
string HTML text

Reimplemented from FileUploader.

Definition at line 229 of file ImageUploader.php.

Here is the call graph for this function:

resizeImage ( sourceFileName,
destFileName,
width,
height,
quality 
) [protected]

Resize the image *

Parameters:
string$sourceFileName
string$destFileName
number$width
number$height
int$quality

quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default is the default IJG quality value (about 75).

Returns:
boolean true is success

Definition at line 159 of file ImageUploader.php.

Here is the caller graph for this function:

setValue ( value )

Set value of element

Parameters:
mixed$value
Returns:
mixed

Reimplemented from FileUploader.

Definition at line 73 of file ImageUploader.php.

Here is the call graph for this function:


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