\Upload_model

图片处理上传model

Summary

Methods
Properties
Constants
__construct()
__get()
uploadImage()
uploadfile()
uploadAudio()
cropimage()
picUrl()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_fileErr()
$path
$max_size
$upFileType
$videotype
$videosize
$audioSize
$audioType
N/A

Properties

$path

$path : 

Type

$max_size

$max_size : 

Type

$upFileType

$upFileType : 

Type

$videotype

$videotype : 

Type

$videosize

$videosize : 

Type

$audioSize

$audioSize : 

Type

$audioType

$audioType : 

Type

Methods

__construct()

__construct() : void

Class constructor

__get()

__get(string  $key) 

__get magic

Allows models to access CI's loaded classes using the same syntax as controllers.

Parameters

string $key

uploadImage()

uploadImage(  $filekey = '',   $thumbFlag = FALSE) 

图片上传

Parameters

$filekey

string POST请求中图片数据的key inputname

$thumbFlag

uploadfile()

uploadfile(  $filekey = '',   $uploadfile = '') 

上传文件和视频

Parameters

$filekey
$uploadfile

uploadAudio()

uploadAudio(  $filekey = '',   $uploadfile = '') 

上传音频

Parameters

$filekey
$uploadfile

cropimage()

cropimage(  $thumbconfig = array()) 

剪切图片

Parameters

$thumbconfig

picUrl()

picUrl(  $path,   $k = '') 

获取图片路径

Parameters

$path
$k

_fileErr()

_fileErr(  $fileerr) 

Parameters

$fileerr