Formatting output Plese Wait...

upload Class Reference
[File Upload]

Inheritance diagram for upload:

Inheritance graph
[legend]
Collaboration diagram for upload:

Collaboration graph
[legend]

Public Member Functions

 upload ()
 __construct ()
 Constructor of the upload class.
 validate ($mode=Z_UPLOAD_NUMARICAL)
 Does the Actual job to Validate the Form Fields.
 setDestination ($dest=null)
 Change the Upload Destination.
 doUpload ()
 Upload the file(s).
 makeSeed ()
 Generate a random integer Seed.
 genRandomName ($ext)
 Generate a random name by the seed with the same extension of the file name.

Data Fields

 $defult_filters = array()
 $upload_path = false
 $files = array()
 $php_error = array()
 $validate_ret = false

Private Member Functions

 field_exists ($field_name)
 Checks wheather the supplied form Field is valid.
 p4exists (&$resLnk, $startIndex=0)
 required or Optional rule exists in this array or not
 p2exists (&$resLnk, $startIndex=0)
 size(MIN, MAX) Rule exists in the Rules array

Detailed Description

Upload Class.

For internal use only.

This is an internal abstract Class which you might not need to use directly

This is the class that actually handles all upload operation(s). You need to invoke doUpload() method do do upload operation. you can also dynamically generate filenames and other things.

Definition at line 55 of file usr/lib/module/upload/upload.php.


Constructor & Destructor Documentation

upload::__construct( ) 


Member Function Documentation

upload::upload( ) 

upload::field_exists( string $field_name )  [private]

upload::p4exists( string $resLnk, string $startIndex = 0 ) [private]

upload::p2exists( string $resLnk, string $startIndex = 0 ) [private]

upload::validate( bool $mode = Z_UPLOAD_NUMARICAL ) 

upload::setDestination( string $dest = null ) 

upload::doUpload( ) 

upload::makeSeed( ) 

upload::genRandomName( string $ext ) 


Field Documentation

upload::$defult_filters = array()

upload::$upload_path = false

upload::$files = array()

upload::$php_error = array()

upload::$validate_ret = false


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

Generated on Mon Oct 27 23:53:15 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List