phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DAutomatedUploader

Source Location: /Files/AutomatedFileUploader/DAutomatedUploader.php

Class Overview

DObject
   |
   --DAutomatedUploader

File Uploader Class


Variables

Methods


Child classes:

DImageUploader
Image Uploader

Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 14]
File Uploader Class



[ Top ]


Class Variables

$_fieldName =

[line 21]

Field names



Tags:

access:  protected

Type:   string


[ Top ]

$_fileExtention =

[line 35]

File extension



Tags:

access:  protected

Type:   string


[ Top ]

$_filePath =

[line 42]

File path



Tags:

access:  protected

Type:   string


[ Top ]

$_newFileName =

[line 28]

New field name



Tags:

access:  protected

Type:   string


[ Top ]

$_uploadDir =

[line 49]

Upload dir



Tags:

access:  protected

Type:   string


[ Top ]

$_uploadedFiles =

[line 56]

Upload files



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 67]

FileUploader __construct( [string $fieldName = -1], [string $uploadDir = -1])

File Uploader



Tags:

author:  @OD
access:  public


Overridden in child classes as:

DImageUploader::__construct()
Image Uploader

Overrides DObject::__construct() (Constructor)

Parameters:

string   $fieldName   fieldName[optional]
string   $uploadDir   uploadDir[optional]

[ Top ]

method checkFieldForErrors [line 222]

bool checkFieldForErrors( [string $field = -1])

Checks the field file for erros



Tags:

author:  @OD
access:  public


Parameters:

string   $field   field[optional]

[ Top ]

method checkIfFileExist [line 171]

bool checkIfFileExist( string $filePath)

Checks if the file exists



Tags:

author:  @OD
access:  public


Parameters:

string   $filePath   filePath

[ Top ]

method deleteUploadedFiles [line 238]

void deleteUploadedFiles( string $field)

Deletes uploaded files



Tags:

access:  public


Parameters:

string   $field  

[ Top ]

method getFileExtention [line 183]

string getFileExtention( string $fileName)

Gets the extention of the file name



Tags:

author:  @OD
access:  public


Parameters:

string   $fileName   fileName

[ Top ]

method getNewFileName [line 197]

string getNewFileName( )

Gets the new file name



Tags:

author:  @OD
access:  public


[ Top ]

method setFieldName [line 82]

void setFieldName( string $fieldName)

Sets the field name of the source file



Tags:

author:  @OD
access:  public


Overridden in child classes as:

DImageUploader::setFieldName()
Sets the field name of the source file

Parameters:

string   $fieldName   fieldName

[ Top ]

method setUploadDir [line 209]

void setUploadDir( string $uploadDir)

Sets the upload location of the files



Tags:

author:  @OD
access:  public


Parameters:

string   $uploadDir   uploadDir

[ Top ]

method upload [line 100]

bool upload( [string $pathToSave = -1], string 1)

Uploads the seleced by field name source file



Tags:

author:  @OD
access:  public


Parameters:

string   1   newFileName[optional]
string   $pathToSave   pathToSave[optional]

[ Top ]

method _getFileData [line 136]

mixed _getFileData( )

Gets the data of the selected field source file



Tags:

author:  @OD
access:  protected


[ Top ]

method _getUniqueName [line 155]

string _getUniqueName( )

Gets the unique name of the selected field source file



Tags:

author:  @OD
access:  protected


[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:02:27 +0300 by phpDocumentor 1.4.3