Xataface AJAX Upload Module 0.1
jQuery Ajax Upload Widget for Xataface
Public Member Functions
modules_ajax_upload Class Reference

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)

Detailed Description

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.


Constructor & Destructor Documentation

__construct ( )

Initializes the depselect module and registers all of the event listener.

Definition at line 46 of file ajax_upload.php.


Member Function Documentation

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.

Parameters:
string$fieldnameThe name of the field
mixed$valueThe value to validate for the field.
array$paramsArray 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.
Returns:
boolean True if it validates ok, false otherwise.

Definition at line 195 of file ajax_upload.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables