Preview
extends Facade
in package
Table of Contents
Properties
Methods
- __callStatic() : mixed
- endPreviewMode() : void
- expiredShareUrl() : void
- getFakeUserAgent() : string|false
- getInstance() : mixed
- get service instance
- getPreviewShareTpl() : string
- getSharePreviewUrl() : string
- getShareUrl() : string
- isPreviewMode() : bool
- isPreviewShareAdmin() : bool
- isValidPreviewSharingUrl() : bool
- setContainer() : void
- startPreviewMode() : void
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
endPreviewMode()
public
static endPreviewMode() : void
プレビューモードを終了
expiredShareUrl()
public
static expiredShareUrl() : void
期限切れの共有URLを削除
getFakeUserAgent()
public
static getFakeUserAgent() : string|false
偽装ユーザーエージェントの取得
Return values
string|falsegetInstance()
get service instance
public
static getInstance() : mixed
getPreviewShareTpl()
public
static getPreviewShareTpl() : string
プレビュー共有URLのテンプレートを取得 *
Return values
stringgetSharePreviewUrl()
public
static getSharePreviewUrl() : string
共有URLで実際に表示するiFrameのURL
Return values
stringgetShareUrl()
public
static getShareUrl(string $url[, bool $lifetime = = 'false' ]) : string
プレビュー共有URLの取得
Parameters
- $url : string
- $lifetime : bool = = 'false'
Return values
stringisPreviewMode()
public
static isPreviewMode() : bool
プレビューモード中か判定
Return values
boolisPreviewShareAdmin()
public
static isPreviewShareAdmin(string $admin) : bool
プレビュー共有URLの管理者か判定
Parameters
- $admin : string
Return values
boolisValidPreviewSharingUrl()
public
static isValidPreviewSharingUrl() : bool
プレビュー共有モードになれるか判定
Return values
boolsetContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
startPreviewMode()
public
static startPreviewMode(string $fakeUserAgent, string $token) : void
プレビューモードを開始
Parameters
- $fakeUserAgent : string
- $token : string
getServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool