[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TFileUpload class file
Author: | Marcus Nyeholt <tanus@users.sourceforge.net>, Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TFileUpload.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 249 lignes (8 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TFileUpload:: (16 méthodes):
getTagName()
addAttributesToRender()
onPreRender()
getMaxFileSize()
setMaxFileSize()
getFileName()
getFileSize()
getFileType()
getLocalName()
getErrorCode()
getHasFile()
saveAs()
loadPostData()
raisePostDataChangedEvent()
onFileUpload()
getValidationPropertyValue()
Classe: TFileUpload - X-Ref
TFileUpload classgetTagName() X-Ref |
return: string tag name of the file upload control |
addAttributesToRender($writer) X-Ref |
Sets name attribute to the unique ID of the control. This method overrides the parent implementation with additional file update control specific attributes. param: THtmlWriter the writer used for the rendering purpose |
onPreRender($param) X-Ref |
Sets Enctype of the form on the page. This method overrides the parent implementation and is invoked before render. param: mixed event parameter |
getMaxFileSize() X-Ref |
return: integer the maximum file size, defaults to 1MB (1048576 bytes). |
setMaxFileSize($size) X-Ref |
Sets the maximum size that a file can be uploaded. Note, this is an advisory value to the browser. Sets this property with a reasonably large size to save users the trouble of waiting for a big file being transferred only to find that it was too big and the transfer failed. param: int the maximum upload size allowed for a file. |
getFileName() X-Ref |
return: string the original full path name of the file on the client machine |
getFileSize() X-Ref |
return: integer the actual size of the uploaded file in bytes |
getFileType() X-Ref |
return: string the MIME-type of the uploaded file (such as "image/gif"). |
getLocalName() X-Ref |
return: string the local name of the file (where it is after being uploaded). |
getErrorCode() X-Ref |
Returns an error code describing the status of this file uploading. return: integer the error code |
getHasFile() X-Ref |
return: boolean whether the file is uploaded successfully |
saveAs($fileName,$deleteTempFile=true) X-Ref |
Saves the uploaded file. param: string the file name used to save the uploaded file param: boolean whether to delete the temporary file after saving. return: boolean true if the file saving is successful |
loadPostData($key,$values) X-Ref |
Loads user input data. This method is primarly used by framework developers. param: string the key that can be used to retrieve data from the input data collection param: array the input data collection return: boolean whether the data of the control has been changed |
raisePostDataChangedEvent() X-Ref |
Raises postdata changed event. This method calls {@link onFileUpload} method. This method is primarly used by framework developers. |
onFileUpload($param) X-Ref |
This method is invoked when a file is uploaded during a postback. The method raises <b>OnFileUpload</b> event to fire up the event handler. If you override this method, be sure to call the parent implementation so that the event delegates can be invoked. param: TEventParameter event parameter to be passed to the event handlers |
getValidationPropertyValue() X-Ref |
Returns the original file name as the property value to be validated. This method is required by IValidatable property. return: mixed the property value to be validated |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |