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_FileUpload

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

Class Overview


Provides functionalities for handling tNG based file uploads.


Author(s):

Variables

Methods


Child classes:

tNG_ImageUpload
Provides functionalities for handling tNG based file uploads.

Class Details

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

it is also de base class for tNG_ImageUpload class;




Tags:

access:  public


[ Top ]


Class Variables

$errObj =

[line 23]

error object



Tags:

access:  public

Type:   object


[ Top ]

$tNG =

[line 17]

The tNG object



Tags:

access:  public

Type:   object tNG


[ Top ]



Class Methods


constructor tNG_FileUpload [line 29]

tNG_FileUpload tNG_FileUpload( object tNG &$tNG)

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



Tags:

access:  public


Parameters:

object tNG   &$tNG  

[ Top ]

method deleteThumbnails [line 116]

void deleteThumbnails( mixed $folder, mixed $oldName)

abstract method; to be implemented by the sub classes;



Tags:

var:  forlder name
access:  public


Overridden in child classes as:

tNG_ImageUpload::deleteThumbnails()
in case of an update, the old thumbnail are deleted;

[ Top ]

method Execute [line 125]

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


Overridden in child classes as:

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

[ Top ]

method RollBack [line 107]

nothing RollBack( )

rollback the operation (delete the file)



Tags:

access:  public


[ Top ]

method setAllowedExtensions [line 79]

void setAllowedExtensions( mixed $allowedExtensions)

setter. set the extensions allowed.



Tags:

var:  extensions separated by coma
access:  public


[ Top ]

method setDbFieldName [line 55]

void setDbFieldName( mixed $dbFieldName)

setter. set the db field name



Tags:

access:  public


[ Top ]

method setFolder [line 63]

void setFolder( mixed $folder)

setter. set folder name



Tags:

access:  public


[ Top ]

method setFormFieldName [line 47]

void setFormFieldName( mixed $formFieldName)

setter. set formFieldName



Tags:

access:  public


[ Top ]

method setMaxSize [line 71]

void setMaxSize( mixed $maxSize)

setter. set the file max size allowed



Tags:

access:  public


[ Top ]

method setRename [line 91]

void setRename( mixed $rename)

setter. set if is rename or not rule



Tags:

access:  public


[ Top ]

method setRenameRule [line 99]

void setRenameRule( mixed $renameRule)

setter. set rename rule to be used



Tags:

access:  public


[ Top ]



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