Class UploadFile

Description

文件上传类

Located in /ORG/Net/UploadFile.class.php (line 24)

Base
   |
   --UploadFile
Variable Summary
Method Summary
UploadFile __construct ([ $maxSize = ''], [ $allowExts = ''], [ $allowTypes = ''], [ $savePath = UPLOAD_PATH], [ $saveRule = ''])
void error (string $errorNo)
string getErrorMsg ()
string upload ([string $savePath = ''])
Variables
mixed $allowExts = array() (line 35)
  • access: public
mixed $allowTypes = array() (line 39)
  • access: public
mixed $hashType = 'md5_file' (line 65)
  • access: public
mixed $maxSize = -1 (line 28)
  • access: public
mixed $savePath = '' (line 53)
  • access: public
mixed $saveRule = '' (line 61)
  • access: public
mixed $supportMulti = true (line 31)
  • access: public
mixed $thumb = false (line 42)
  • access: public
mixed $thumbMaxHeight (line 46)
  • access: public
mixed $thumbMaxWidth (line 44)
  • access: public
mixed $thumbSuffix = '_thumb' (line 48)
  • access: public
mixed $uploadReplace = false (line 56)
  • access: public
mixed $zipImages = false (line 50)
  • access: public
Methods
Constructor __construct (line 80)

架构函数

  • access: public
UploadFile __construct ([ $maxSize = ''], [ $allowExts = ''], [ $allowTypes = ''], [ $savePath = UPLOAD_PATH], [ $saveRule = ''])
  • $maxSize
  • $allowExts
  • $allowTypes
  • $savePath
  • $saveRule
error (line 298)

获取错误代码信息

  • throws: ThinkExecption
  • access: protected
void error (string $errorNo)
  • string $errorNo: 错误号码
getErrorMsg (line 464)

取得最后一次错误信息

  • access: public
string getErrorMsg ()
getUploadFileInfo (line 450)

取得上传文件的信息

  • access: public
array getUploadFileInfo ()
upload (line 167)

上传文件

  • throws: ThinkExecption
  • access: public
string upload ([string $savePath = ''])
  • string $savePath: 上传文件保存路径

Documentation generated on Thu, 27 Mar 2008 08:21:00 +0000 by 塞北的雪