PHP Class UploaderHelper

Inheritance: extends AppHelper
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$helpers array ヘルパー
$savePath string アップロードファイルの保存パス
$savedUrl string アップロードファイルの保存URL

Méthodes publiques

Méthode 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 méthode

Before Render
public beforeRender ( $viewFile ) : void
Résultat void

download() public méthode

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

file() public méthode

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

getFileUrl() public méthode

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

isLimitSetting() public méthode

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

isPublish() public méthode

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

Property Details

$helpers public_oe property

ヘルパー
public array $helpers
Résultat array

$savePath public_oe property

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

$savedUrl public_oe property

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