PHP Class UploaderHelper

Inheritance: extends AppHelper
Show file Open project: baserproject/basercms

Public Properties

Property Type Description
$helpers array ヘルパー
$savePath string アップロードファイルの保存パス
$savedUrl string アップロードファイルの保存URL

Public Methods

Method Description
beforeRender ( $viewFile ) : void Before Render
download ( array $uploaderFile, string $linkText = '≫ ダウンロード' ) : string ダウンロードリンクを表示
file ( array $uploaderFile, array $options = [] ) : string リスト用のimgタグを出力する
getFileUrl ( string $fileName ) : string ファイルが保存されているURLを取得する
isLimitSetting ( array $data ) : boolean ファイルの公開制限期間が設定されているか判定する
isPublish ( array $data ) : boolean ファイルの公開状態を取得する

Method Details

beforeRender() public method

Before Render
public beforeRender ( $viewFile ) : void
return void

download() public method

ダウンロードリンクを表示
public download ( array $uploaderFile, string $linkText = '≫ ダウンロード' ) : string
$uploaderFile array
$linkText string
return string

file() public method

リスト用のimgタグを出力する
public file ( array $uploaderFile, array $options = [] ) : string
$uploaderFile array
$options array
return string imgタグ

getFileUrl() public method

ファイルが保存されているURLを取得する
public getFileUrl ( string $fileName ) : string
$fileName string
return string

isLimitSetting() public method

ファイルの公開制限期間が設定されているか判定する
public isLimitSetting ( array $data ) : boolean
$data array
return boolean

isPublish() public method

ファイルの公開状態を取得する
public isPublish ( array $data ) : boolean
$data array
return boolean

Property Details

$helpers public property

ヘルパー
public array $helpers
return array

$savePath public property

アップロードファイルの保存パス
public string $savePath
return string

$savedUrl public property

アップロードファイルの保存URL
public string $savedUrl
return string