Transaction Engine 3 Application Programming Interface
[ class tree: Transaction Engine 3 Application Programming Interface ] [ index: Transaction Engine 3 Application Programming Interface ] [ all elements ]

Class: tNG_ImageUpload

Source Location: /tNG3/triggers/tNG_ImageUpload.class.php

Class Overview

tNG_FileUpload
   |
   --tNG_ImageUpload

Provides functionalities for handling tNG based file uploads.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: tNG_FileUpload

tNG_FileUpload::tNG_FileUpload()
Constructor. Sets the reference to transaction. initialize some vars;
tNG_FileUpload::deleteThumbnails()
abstract method; to be implemented by the sub classes;
tNG_FileUpload::Execute()
the main method, execute the code of the class;
tNG_FileUpload::RollBack()
rollback the operation (delete the file)
tNG_FileUpload::setAllowedExtensions()
setter. set the extensions allowed.
tNG_FileUpload::setDbFieldName()
setter. set the db field name
tNG_FileUpload::setFolder()
setter. set folder name
tNG_FileUpload::setFormFieldName()
setter. set formFieldName
tNG_FileUpload::setMaxSize()
setter. set the file max size allowed
tNG_FileUpload::setRename()
setter. set if is rename or not rule
tNG_FileUpload::setRenameRule()
setter. set rename rule to be used

Class Details

[line 11]
Provides functionalities for handling tNG based file uploads.

Extends tNG_FileUpload class;




Tags:

access:  public


[ Top ]


Class Variables

$resize =

[line 17]

if the image will be resized



Tags:

access:  public

Type:   boolena


[ Top ]

$resizeHeight =

[line 35]

height for resize



Tags:

access:  public

Type:   integer


[ Top ]

$resizeProportional =

[line 23]

If the proportions must be kept in case of a resize



Tags:

access:  public

Type:   boolean


[ Top ]

$resizeWidth =

[line 29]

width for resize



Tags:

access:  public

Type:   integer


[ Top ]



Class Methods


constructor tNG_ImageUpload [line 42]

tNG_ImageUpload tNG_ImageUpload( object tNG &$tNG)

Constructor. Sets the reference to transaction. initialize some vars;



Tags:

access:  public


Parameters:

object tNG   &$tNG  

[ Top ]

method deleteThumbnails [line 69]

void deleteThumbnails( mixed $folder, mixed $oldName)

in case of an update, the old thumbnail are deleted;



Tags:

var:  the name of the folder
access:  public


Overrides tNG_FileUpload::deleteThumbnails() (abstract method; to be implemented by the sub classes;)

[ Top ]

method Execute [line 96]

void Execute( )

the main method, execute the code of the class;

Upload the file, set the file name in transaction; return mix null or error object




Tags:

access:  public


Overrides tNG_FileUpload::Execute() (the main method, execute the code of the class;)

[ Top ]

method Resize [line 108]

void Resize( )

Make the resize on the saved file;

return mix null or error object




Tags:

access:  public


[ Top ]

method setResize [line 56]

void setResize( mixed $proportional, mixed $width, mixed $height)

setter. set the sizes for the resize and proportional resize flag;



Tags:

var:  proportional make the resize proportional
access:  public


[ Top ]



Documentation generated on Tue, 6 Dec 2005 15:11:45 +0200 by phpDocumentor 1.3.0RC3