IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Application
  • AssetManager
  • Attach
  • AuthManager
  • Browser
  • Cache
  • Category
  • Engine
  • Log
  • MessageSource
  • PerformanceMeasurement
  • PlugManager
  • Request
  • ThemeManager
  • Upgrade
  • Upload

Class Upload

Direct known subclasses

application\core\engines\sae\SaeUpload

Namespace: application\core\components
Located at system/core/components/Upload.php

Methods summary

final public boolean
# __construct( array $attach, string $module = 'temp' )

初始化文件上传域

初始化文件上传域

Parameters

$attach
$_FILES数组
$module
模块名

Returns

boolean
初始化成功与否
public type
# getAttach( )

公共方法:获取attach数组

公共方法:获取attach数组

Returns

type
public integer
# getError( )

获取错误代码

获取错误代码

Returns

integer
public boolean
# save( )

通用保存附件方法

通用保存附件方法

Returns

boolean
protected boolean
# saveToLocal( type $source, type $target )

本地保存文件方法

本地保存文件方法

Parameters

$source
$target

Returns

boolean
protected boolean
# checkDirType( string $module )

检查是否已存在模块目录

检查是否已存在模块目录

Parameters

$module
模块名称

Returns

boolean
protected boolean
# isUploadFile( string $source )

检查是否上传文件

检查是否上传文件

Parameters

$source
目标文件

Returns

boolean
protected boolean
# isImageExt( string $ext )

检查是否图片格式后缀

检查是否图片格式后缀

Parameters

$ext
要检查的后缀

Returns

boolean
protected string
# getTargetDir( string $module )

获取目标文件夹,返回以 module/Ym/d/ 的目录形式

获取目标文件夹,返回以 module/Ym/d/ 的目录形式

Parameters

$module
模块名

Returns

string
protected 存在与否
# checkDirExists( string $module, string $ymDir, string $dayDir )

检查指定附件文件夹是否存在,适用于本地环境

检查指定附件文件夹是否存在,适用于本地环境

Parameters

$module
模块名
$ymDir
月份文件夹
$dayDir
日文件夹

Returns

存在与否
protected string
# getTargetFileName( )

获取随机文件名

获取随机文件名

Returns

string
IBOS open source API documentation generated by ApiGen