PHP Class BcUploadHelper

Inheritance: extends FormHelper
Mostrar archivo Open project: baserproject/basercms

Public Properties

Property Type Description
$helpers array ヘルパ

Public Methods

Method Description
fileLink ( string $fieldName, array $options = [] ) : string ファイルへのリンクを取得する
getBasePath ( $settings = null ) : string アップロード先のベースパスを取得
uploadImage ( string $fieldName, string $fileName, array $options = [] ) : string アップロードした画像のタグをリンク付きで出力する Uploadビヘイビアの設定による 上から順に大きい画像を並べている事が前提で 指定したサイズ内で最大の画像を出力 リンク先は存在する最大の画像へのリンクとなる

Protected Methods

Method Description
getBcUploadSetting ( ) : array アップロードの設定を取得する

Method Details

getBasePath() public method

アップロード先のベースパスを取得
public getBasePath ( $settings = null ) : string
return string パス

getBcUploadSetting() protected method

アップロードの設定を取得する
protected getBcUploadSetting ( ) : array
return array

uploadImage() public method

アップロードした画像のタグをリンク付きで出力する Uploadビヘイビアの設定による 上から順に大きい画像を並べている事が前提で 指定したサイズ内で最大の画像を出力 リンク先は存在する最大の画像へのリンクとなる
public uploadImage ( string $fieldName, string $fileName, array $options = [] ) : string
$fieldName string
$fileName string
$options array
return string

Property Details

$helpers public_oe property

ヘルパ
public array $helpers
return array