PHP Класс mdm\upload\FileModel

Наследование: extends yii\db\ActiveRecord
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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