PHP 클래스 Xpressengine\Storage\File

저자: XE Team (developers) ([email protected])
상속: implements JsonSerializabl\JsonSerializable, use trait Xpressengine\Support\EntityTrait
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$incrementing boolean Indicates if the IDs are auto-incrementing.

보호된 프로퍼티들

프로퍼티 타입 설명
$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