PHP 클래스 mdm\upload\FileModel

상속: extends yii\db\ActiveRecord
파일 보기 프로젝트 열기: mdmsoft/yii2-upload-file 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaultDirectoryLevel integer
$defaultUploadPath string
$directoryLevel the level of sub-directories to store uploaded files. Defaults to 1. If the system has huge number of uploaded files (e.g. one million), you may use a bigger value (usually no bigger than 3). Using sub-directories is mainly to ensure the file system is not over burdened with a single directory having too many files.
$file yii\web\UploadedFile
$saveCallback Closure
$uploadPath Upload path

공개 메소드들

메소드 설명
attributeLabels ( )
beforeDelete ( )
beforeSave ( $insert )
getContent ( )
rules ( )
saveAs ( UploadedFile | string $file, array $options = [] ) : boolean | static Save file
tableName ( )

메소드 상세

attributeLabels() 공개 메소드

public attributeLabels ( )

beforeDelete() 공개 메소드

public beforeDelete ( )

beforeSave() 공개 메소드

public beforeSave ( $insert )

getContent() 공개 메소드

public getContent ( )

rules() 공개 메소드

public rules ( )

saveAs() 공개 정적인 메소드

Save file
public static saveAs ( UploadedFile | string $file, array $options = [] ) : boolean | static
$file yii\web\UploadedFile | string
$options array
리턴 boolean | static

tableName() 공개 정적인 메소드

public static tableName ( )

프로퍼티 상세

$defaultDirectoryLevel 공개적으로 정적으로 프로퍼티

public static int $defaultDirectoryLevel
리턴 integer

$defaultUploadPath 공개적으로 정적으로 프로퍼티

public static string $defaultUploadPath
리턴 string

$directoryLevel 공개적으로 프로퍼티

the level of sub-directories to store uploaded files. Defaults to 1. If the system has huge number of uploaded files (e.g. one million), you may use a bigger value (usually no bigger than 3). Using sub-directories is mainly to ensure the file system is not over burdened with a single directory having too many files.
public $directoryLevel

$file 공개적으로 프로퍼티

public UploadedFile,yii\web $file
리턴 yii\web\UploadedFile

$saveCallback 공개적으로 프로퍼티

public Closure $saveCallback
리턴 Closure

$uploadPath 공개적으로 프로퍼티

Upload path
public $uploadPath