PHP Class UploaderFile

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

Public Properties

Property Type Description
$actsAs array behaviors
$plugin string プラグイン名

Public Methods

Method Description
__construct ( integer $id = false, string $table = null, string $ds = null ) コンストラクタ
beforeDelete ( $cascade = true )
beforeSave ( $options = [] )
fileExists ( string $fileName, $limited = false ) : void ファイルの存在チェックを行う
filesExists ( string $fileName, $limited = null ) : array 複数のファイルの存在チェックを行う
getControlSource ( string $field = null, array $options = [] ) : mixed コントロールソースを取得する
getSourceFileName ( $fileName )

Method Details

__construct() public method

コンストラクタ
public __construct ( integer $id = false, string $table = null, string $ds = null )
$id integer
$table string
$ds string

beforeDelete() public method

public beforeDelete ( $cascade = true )

beforeSave() public method

public beforeSave ( $options = [] )

fileExists() public method

ファイルの存在チェックを行う
public fileExists ( string $fileName, $limited = false ) : void
$fileName string
return void

filesExists() public method

複数のファイルの存在チェックを行う
public filesExists ( string $fileName, $limited = null ) : array
$fileName string
return array

getControlSource() public method

コントロールソースを取得する
public getControlSource ( string $field = null, array $options = [] ) : mixed
$field string フィールド名
$options array
return mixed $controlSource コントロールソース

getSourceFileName() public method

public getSourceFileName ( $fileName )

Property Details

$actsAs public property

behaviors
public array $actsAs
return array

$plugin public property

プラグイン名
public string $plugin
return string