Xataface AJAX Upload Module 0.1
jQuery Ajax Upload Widget for Xataface
|
The main depselect module class. This loads all of the dependencies for the module. More...
Public Member Functions | |
__construct () | |
Initializes the depselect module and registers all of the event listener. | |
block__head_slot () | |
getBaseURL () | |
Returns the base URL to this module's directory. Useful for including Javascripts and CSS. | |
beforeSave ($event) | |
moveUploadedFile (Dataface_Record $record, $fieldName) | |
validate (&$field, $value, &$params) | |
Validates against a field of this table. This checks if a value is valid for this a field of this table. | |
getMimeType ($path) | |
getThumbnail ($url, $path) |
The main depselect module class. This loads all of the dependencies for the module.
Of note, this module depends on the XataJax module for the loading of its javascripts.
Definition at line 31 of file ajax_upload.php.
__construct | ( | ) |
Initializes the depselect module and registers all of the event listener.
Definition at line 46 of file ajax_upload.php.
beforeSave | ( | $ | event | ) |
Definition at line 87 of file ajax_upload.php.
block__head_slot | ( | ) |
Definition at line 68 of file ajax_upload.php.
getBaseURL | ( | ) |
Returns the base URL to this module's directory. Useful for including Javascripts and CSS.
Definition at line 78 of file ajax_upload.php.
getMimeType | ( | $ | path | ) |
Definition at line 274 of file ajax_upload.php.
getThumbnail | ( | $ | url, |
$ | path | ||
) |
Definition at line 301 of file ajax_upload.php.
moveUploadedFile | ( | Dataface_Record $ | record, |
$ | fieldName | ||
) |
Definition at line 103 of file ajax_upload.php.
validate | ( | &$ | field, |
$ | value, | ||
&$ | params | ||
) |
Validates against a field of this table. This checks if a value is valid for this a field of this table.
string | $fieldname | The name of the field |
mixed | $value | The value to validate for the field. |
array | $params | Array of parameters. This may be used to pass parameters OUT of this function. For example. Setting the 'message' attribute of this array will pass out a message to be displayed to the user along with the error upon failed validation. |
Definition at line 195 of file ajax_upload.php.