Public Member Functions | |
| __destruct () | |
| upload ($file, array $prm=array()) | |
| view ($file, array $prm=array()) | |
| delete ($file, array $prm=null) | |
| makePath ($file, $more=null) | |
| make (array $prm=array()) | |
| valid (array $file, array $prm=array()) | |
| setImg ($file) | |
| save ($file) | |
| mask ($file) | |
| getAttr ($name) | |
| setAttr ($name, $value) | |
| getCfg () | |
Protected Member Functions | |
| addFilesRootIfNeeded ($file) | |
| build () | |
| html (array $options=array()) | |
| createImage ($file) | |
| resize (array $prm=array()) | |
| crop (array $prm) | |
| hexa2dec ($col) | |
| beforeInit () | |
| afterInit () | |
Protected Attributes | |
| $imgAct | |
| $imgTmp | |
| $info | |
| $cfg | |
Helper to manipulate and upload image
Definition at line 10 of file image.class.php.
| __destruct | ( | ) |
Destructor
Definition at line 36 of file image.class.php.
| addFilesRootIfNeeded | ( | $ | file | ) | [protected] |
Add FILESROOT to a filename if not present in it
| string | $file Filename |
Definition at line 122 of file image.class.php.
| afterInit | ( | ) | [protected, inherited] |
Call just after the configuration initialisation
Reimplemented in db_row, db_rowset, db_table, db_where, form_abstract, form_captcha, form_checkbox_fields, form_date, form_file, form_fileUploaded, form_list, form_mulValue, form_range_date, form, helper_dataTable, helper_email, helper_filterTable, http_cookie, module_abstract, module_out_controller, module_scaffold_controller, response_http_html, response_http_xul, response_http, response_proxy, security_abstract, security_default, session_php, and tpl.
Definition at line 40 of file object.class.php.
| beforeInit | ( | ) | [protected, inherited] |
Call just before the configuration initialisation
Reimplemented in form_file.
Definition at line 35 of file object.class.php.
| build | ( | ) | [protected] |
Make an image with the configuration parameter
Definition at line 155 of file image.class.php.
| createImage | ( | $ | file | ) | [protected] |
Create an image ressource and get the dimension of the
| string | $file The image path |
Definition at line 333 of file image.class.php.
| crop | ( | array $ | prm | ) | [protected] |
Crop the image
| array | $prm The parameter for the cropping:
|
Definition at line 505 of file image.class.php.
| delete | ( | $ | file, | |
| array $ | prm = null | |||
| ) |
Delete the eventual thumbnail created for an image Used in form_fileUploaded
| string | $file The image uploaded | |
| array | $prm The parameter for the image |
Definition at line 92 of file image.class.php.
| getAttr | ( | $ | name | ) | [inherited] |
Get an attribute
| string | $name Attribute name |
Reimplemented in response_proxy.
Definition at line 48 of file object.class.php.
| getCfg | ( | ) | [inherited] |
| hexa2dec | ( | $ | col | ) | [protected] |
Convert an hexadecimal color to an rgb.
| string | $col The hexadecimal color |
Definition at line 547 of file image.class.php.
| html | ( | array $ | options = array() |
) | [protected] |
Make an image with the configuration parameter
Definition at line 271 of file image.class.php.
| make | ( | array $ | prm = array() |
) |
Make an image
| array | $prm The parameter for the image |
Definition at line 135 of file image.class.php.
| makePath | ( | $ | file, | |
| $ | more = null | |||
| ) |
Make the path for a thumbnail
| string | $file File name source | |
| string | $more To create other |
Definition at line 104 of file image.class.php.
| mask | ( | $ | file | ) |
Add a mask to the actual image
| string | $file The mask image path |
Definition at line 473 of file image.class.php.
| resize | ( | array $ | prm = array() |
) | [protected] |
Resize the image
| array | $prm The parameter for the resizing:
|
Definition at line 371 of file image.class.php.
| save | ( | $ | file | ) |
Save the image
| string | $file The image path |
Definition at line 308 of file image.class.php.
| setAttr | ( | $ | name, | |
| $ | value | |||
| ) | [inherited] |
Set an attribute
| string | $name Attribute name | |
| mixed | $value Attribute value |
Reimplemented in response_proxy.
Definition at line 58 of file object.class.php.
| setImg | ( | $ | file | ) |
Set an image and creating a ressource with it
| string | $file The image path |
Definition at line 290 of file image.class.php.
| upload | ( | $ | file, | |
| array $ | prm = array() | |||
| ) |
Upload an image form a uploaded file Used in form_fileUploaded
| string | $file The image uploaded | |
| array | $prm The parameter for the image |
Definition at line 51 of file image.class.php.
| valid | ( | array $ | file, | |
| array $ | prm = array() | |||
| ) |
Check if the image is valid (to be used by form_fileUploaded)
| string | $file File pathname | |
| array | $prm |
Reimplemented from helper_file.
Definition at line 140 of file image.class.php.
| view | ( | $ | file, | |
| array $ | prm = array() | |||
| ) |
Get the HTML source to show an image
| string | $file Filename | |
| array | $prm |
Definition at line 67 of file image.class.php.
$cfg [protected, inherited] |
Definition at line 17 of file object.class.php.
$imgAct [protected] |
Definition at line 17 of file image.class.php.
$imgTmp [protected] |
Definition at line 24 of file image.class.php.
$info [protected] |
Definition at line 31 of file image.class.php.
1.7.1