PHP Class XattachModel, thinksns

显示文件 Open project: medz/thinksns-4

Public Methods

Method Description
_install ( ) 卸载服务,未编码
_start ( ) 启动服务,未编码
_stop ( ) 停止服务,未编码
_uninstall ( ) 卸载服务,未编码
addFile ( $attach_type = 'attach', $attach_file ) 直接直接保存文件到附件表
download ( integer $aid ) 下载附件
error ( $info, $return = false ) 返回失败信息
getAttach ( $attachId, $field = '*' ) 返回附件数据
run ( ) 运行服务
success ( $info, $return = false ) 返回成功信息
upload ( string $attach_type = 'attach', array $input_options = [] ) 上传附件

Method Details

_install() public method

卸载服务,未编码
public _install ( )

_start() public method

启动服务,未编码
public _start ( )

_stop() public method

停止服务,未编码
public _stop ( )

_uninstall() public method

卸载服务,未编码
public _uninstall ( )

addFile() public method

直接直接保存文件到附件表
public addFile ( $attach_type = 'attach', $attach_file )

download() public method

下载附件
public download ( integer $aid )
$aid integer 附件ID 为空时使用$_REQUEST['id']作为附件ID

error() public method

返回失败信息
public error ( $info, $return = false )

getAttach() public method

返回附件数据
public getAttach ( $attachId, $field = '*' )

run() public method

运行服务
public run ( )

success() public method

返回成功信息
public success ( $info, $return = false )

upload() public method

上传附件
public upload ( string $attach_type = 'attach', array $input_options = [] )
$attach_type string 附件类型
$input_options array 配置选项[不推荐修改, 默认使用后台的配置]