ACMS_Http_File
extends ACMS_Http
in package
ACMS_Http_File
Table of Contents
Properties
- $extension : string
- ファイル拡張子
- $key : string
- フォームで送信されたデータのキー
- $name : string
- ファイル名
- $path : string
- ファイルパス
- $size : int
- ファイルサイズ
- $type : string
- ファイルタイプ
Methods
- __construct() : mixed
- convertEncoding() : SplTempFileObject
- 文字コードの変換
- file() : ACMS_Http_File
- getCsv() : SplTempFileObject
- ファイルからCSVオブジェクトの取得
- getFileSize() : int
- getter path
- getName() : string
- getter path
- getPath() : string
- getter path
- validateFormat() : mixed
- フォーマットのチェック
- validate() : mixed
- アップロードファイルの検証
Properties
$extension
ファイル拡張子
protected
string
$extension
$key
フォームで送信されたデータのキー
protected
string
$key
$name
ファイル名
protected
string
$name
$path
ファイルパス
protected
string
$path
$size
ファイルサイズ
protected
int
$size
$type
ファイルタイプ
protected
string
$type
Methods
__construct()
public
__construct(mixed $name) : mixed
Parameters
- $name : mixed
convertEncoding()
文字コードの変換
public
convertEncoding(string $path) : SplTempFileObject
Parameters
- $path : string
Return values
SplTempFileObjectfile()
public
static file(string $name) : ACMS_Http_File
Parameters
- $name : string
Return values
ACMS_Http_FilegetCsv()
ファイルからCSVオブジェクトの取得
public
getCsv() : SplTempFileObject
Return values
SplTempFileObjectgetFileSize()
getter path
public
getFileSize() : int
Return values
intgetName()
getter path
public
getName() : string
Return values
stringgetPath()
getter path
public
getPath() : string
Return values
stringvalidateFormat()
フォーマットのチェック
public
validateFormat([array<string|int, mixed> $allowedExtensions = [] ]) : mixed
Parameters
- $allowedExtensions : array<string|int, mixed> = []
validate()
アップロードファイルの検証
private
validate() : mixed