PHP Класс Xpressengine\Storage\File

Автор: XE Team (developers) ([email protected])
Наследование: implements JsonSerializabl\JsonSerializable, use trait Xpressengine\Support\EntityTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$incrementing boolean Indicates if the IDs are auto-incrementing.

Защищенные свойства (Protected)

Свойство Тип Описание
$fileableTable string The table associated with the model for morph.
$reader Xpressengine\Storage\ContentReaderInterface The ContentReader instance
$table string The table associated with the model.
$urls Xpressengine\Storage\UrlMaker Storage UrlMaker instance

Открытые методы

Метод Описание
getByFileable ( string $fileableId ) : Illuminate\Database\Eloquent\Collection | static[] Get the files for fileable
getContent ( ) : string Get the content of file
getDerives ( ) : Illuminate\Database\Eloquent\Collection | static[] Get the derive files of current file
getFileableTable ( ) : string Get a fileable table name
getOriginKey ( ) : string Original file's identifier
getPathname ( ) : string Get a path name of file
getRawDerives ( ) : Illuminate\Database\Eloquent\Collection | static[] Get the derive files of current file with the File type
scopeDerives ( Builder $query, File $file ) : Builder Scope for derives
setContentReader ( Xpressengine\Storage\ContentReaderInterface $reader ) : void Set the ContentReader instance
setUrlMaker ( Xpressengine\Storage\UrlMaker $urlMaker ) : void Set the UrlMaker instance
url ( Closur\Closure $callback = null ) : string Get a file url

Описание методов

getByFileable() публичный статический Метод

Get the files for fileable
public static getByFileable ( string $fileableId ) : Illuminate\Database\Eloquent\Collection | static[]
$fileableId string fileable identifier
Результат Illuminate\Database\Eloquent\Collection | static[]

getContent() публичный Метод

Get the content of file
public getContent ( ) : string
Результат string

getDerives() публичный Метод

Get the derive files of current file
public getDerives ( ) : Illuminate\Database\Eloquent\Collection | static[]
Результат Illuminate\Database\Eloquent\Collection | static[]

getFileableTable() публичный Метод

Get a fileable table name
public getFileableTable ( ) : string
Результат string

getOriginKey() публичный Метод

Original file's identifier
public getOriginKey ( ) : string
Результат string

getPathname() публичный Метод

Get a path name of file
public getPathname ( ) : string
Результат string

getRawDerives() публичный Метод

Get the derive files of current file with the File type
public getRawDerives ( ) : Illuminate\Database\Eloquent\Collection | static[]
Результат Illuminate\Database\Eloquent\Collection | static[]

scopeDerives() публичный Метод

Scope for derives
public scopeDerives ( Builder $query, File $file ) : Builder
$query Illuminate\Database\Eloquent\Builder query builder instance
$file File file instance
Результат Illuminate\Database\Eloquent\Builder

setContentReader() публичный статический Метод

Set the ContentReader instance
public static setContentReader ( Xpressengine\Storage\ContentReaderInterface $reader ) : void
$reader Xpressengine\Storage\ContentReaderInterface content reader instance
Результат void

setUrlMaker() публичный статический Метод

Set the UrlMaker instance
public static setUrlMaker ( Xpressengine\Storage\UrlMaker $urlMaker ) : void
$urlMaker Xpressengine\Storage\UrlMaker UrlMaker instance
Результат void

url() публичный Метод

Get a file url
public url ( Closur\Closure $callback = null ) : string
$callback Closur\Closure callback
Результат string

Описание свойств

$fileableTable защищенное свойство

The table associated with the model for morph.
protected string $fileableTable
Результат string

$incrementing публичное свойство

Indicates if the IDs are auto-incrementing.
public bool $incrementing
Результат boolean

$reader защищенное статическое свойство

The ContentReader instance
protected static ContentReaderInterface,Xpressengine\Storage $reader
Результат Xpressengine\Storage\ContentReaderInterface

$table защищенное свойство

The table associated with the model.
protected string $table
Результат string

$urls защищенное статическое свойство

Storage UrlMaker instance
protected static UrlMaker,Xpressengine\Storage $urls
Результат Xpressengine\Storage\UrlMaker