Property | Type | Description | |
---|---|---|---|
$incrementing | boolean | Indicates if the IDs are auto-incrementing. |
Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
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 ( |
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 |
public static getByFileable ( string $fileableId ) : Illuminate\Database\Eloquent\Collection | static[] | ||
$fileableId | string | fileable identifier |
return | Illuminate\Database\Eloquent\Collection | static[] |
public getDerives ( ) : Illuminate\Database\Eloquent\Collection | static[] | ||
return | Illuminate\Database\Eloquent\Collection | static[] |
public getFileableTable ( ) : string | ||
return | string |
public getOriginKey ( ) : string | ||
return | string |
public getRawDerives ( ) : Illuminate\Database\Eloquent\Collection | static[] | ||
return | Illuminate\Database\Eloquent\Collection | static[] |
public scopeDerives ( |
||
$query | query builder instance | |
$file | file instance | |
return |
public static setContentReader ( Xpressengine\Storage\ContentReaderInterface $reader ) : void | ||
$reader | Xpressengine\Storage\ContentReaderInterface | content reader instance |
return | void |
public static setUrlMaker ( Xpressengine\Storage\UrlMaker $urlMaker ) : void | ||
$urlMaker | Xpressengine\Storage\UrlMaker | UrlMaker instance |
return | void |
protected string $fileableTable | ||
return | string |
public bool $incrementing | ||
return | boolean |
protected static ContentReaderInterface,Xpressengine\Storage $reader | ||
return | Xpressengine\Storage\ContentReaderInterface |
protected string $table | ||
return | string |