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

Class: DImageUploader

Source Location: /Files/AutomatedFileUploader/DImageUploader.php

Class Overview

DObject
   |
   --DAutomatedUploader
      |
      --DImageUploader

Image Uploader


Author(s):

  • @OD

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: DAutomatedUploader

DAutomatedUploader::__construct()
File Uploader
DAutomatedUploader::checkFieldForErrors()
Checks the field file for erros
DAutomatedUploader::checkIfFileExist()
Checks if the file exists
DAutomatedUploader::deleteUploadedFiles()
Deletes uploaded files
DAutomatedUploader::getFileExtention()
Gets the extention of the file name
DAutomatedUploader::getNewFileName()
Gets the new file name
DAutomatedUploader::setFieldName()
Sets the field name of the source file
DAutomatedUploader::setUploadDir()
Sets the upload location of the files
DAutomatedUploader::upload()
Uploads the seleced by field name source file
DAutomatedUploader::_getFileData()
Gets the data of the selected field source file
DAutomatedUploader::_getUniqueName()
Gets the unique name of the selected field source file

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 17]
Image Uploader



Tags:

author:  @OD


[ Top ]


Class Methods


constructor __construct [line 51]

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

Image Uploader



Tags:

author:  @OD
access:  public


Overrides DAutomatedUploader::__construct() (File Uploader)

Parameters:

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

[ Top ]

method createCroppedCopy [line 235]

void createCroppedCopy( int $x, int $y, int $width, int $height)

Creates cropped copy



Tags:

access:  public


Parameters:

int   $x  
int   $y  
int   $width  
int   $height  

[ Top ]

method createResizedCopy [line 82]

void createResizedCopy( int $width, int $height, bool $keepAspectRation, [ $stretch = false])

Creates resized copy of the selected field source file



Tags:

author:  @OD
access:  public


Parameters:

int   $width   width
int   $height   height
bool   $keepAspectRation   keepAspectRation
   $stretch  

[ Top ]

method saveResizedCopy [line 132]

bool saveResizedCopy( string $prefix, [string $pathToSave = -1], [ $quality = 90])

Saves the resized copy of the selected field source file



Tags:

author:  @OD
access:  public


Parameters:

string   $prefix   prefix
string   $pathToSave   pathToSave[optional]
   $quality  

[ Top ]

method setFieldName [line 63]

void setFieldName( string $fieldName)

Sets the field name of the source file



Tags:

author:  @OD
access:  public


Overrides DAutomatedUploader::setFieldName() (Sets the field name of the source file)

Parameters:

string   $fieldName   fieldName

[ Top ]

method setFilePath [line 268]

void setFilePath( string $filePath)

Sets file path



Tags:

access:  public


Parameters:

string   $filePath  

[ Top ]


Class Constants

PHP_DIMAGEUPLOADER_RESIZE_BY_HEIGHT =  -1

[line 19]


[ Top ]

PHP_DIMAGEUPLOADER_RESIZE_BY_WIDTH =  -1

[line 18]


[ Top ]



Documentation generated on Sat, 17 Apr 2010 22:07:06 +0300 by phpDocumentor 1.4.3