baserCMS クラスリファレンス

UploaderHelper extends Helper
in package

アップローダーヘルパー

Table of Contents

Properties

$helpers  : array<string|int, mixed>
ヘルパー
$savedUrl  : string
アップロードファイルの保存URL
$savePath  : string
アップロードファイルの保存パス

Methods

beforeRender()  : void
Before Render
download()  : string
ダウンロードリンクを表示
file()  : string
リスト用のimgタグを出力する
getFileUrl()  : string
ファイルが保存されているURLを取得する
isLimitSetting()  : bool
ファイルの公開制限期間が設定されているか判定する
isPublish()  : bool
ファイルの公開状態を取得する

Properties

$helpers

ヘルパー

public array<string|int, mixed> $helpers = ['Html']

$savedUrl

アップロードファイルの保存URL

public string $savedUrl = ''

$savePath

アップロードファイルの保存パス

public string $savePath = ''

Methods

beforeRender()

Before Render

public beforeRender(Event $event, mixed $viewFile) : void
Parameters
$event : Event
$viewFile : mixed
Tags
checked
noTodo

download()

ダウンロードリンクを表示

public download(UploaderFile $uploaderFile[, string $linkText = '≫ ダウンロード' ]) : string
Parameters
$uploaderFile : UploaderFile
$linkText : string = '≫ ダウンロード'
Tags
checked
noTodo
Return values
string

file()

リスト用のimgタグを出力する

public file(UploaderFile $uploaderFile[, array<string|int, mixed> $options = [] ]) : string
Parameters
$uploaderFile : UploaderFile
$options : array<string|int, mixed> = []
Tags
checked
noTodo
Return values
string

imgタグ

getFileUrl()

ファイルが保存されているURLを取得する

public getFileUrl(string $fileName) : string
Parameters
$fileName : string
Tags
checked
noTodo
Return values
string

isLimitSetting()

ファイルの公開制限期間が設定されているか判定する

public isLimitSetting(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>
Tags
checked
Return values
bool

        
On this page

Search results