a-blog cms PHP API Reference

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
SplTempFileObject

getCsv()

ファイルからCSVオブジェクトの取得

public getCsv() : SplTempFileObject
Return values
SplTempFileObject

getFileSize()

getter path

public getFileSize() : int
Return values
int

getName()

getter path

public getName() : string
Return values
string

getPath()

getter path

public getPath() : string
Return values
string

validateFormat()

フォーマットのチェック

public validateFormat([array<string|int, mixed> $allowedExtensions = [] ]) : mixed
Parameters
$allowedExtensions : array<string|int, mixed> = []

validate()

アップロードファイルの検証

private validate() : mixed

        
On this page

Search results