Class Files
รายการ File รูปแบบ Array.
-
Kotchasan\Files
implements
Iterator
Methods summary
public
|
#
add( string $name, string $path, string $originalName, string $mimeType = null, integer $size = null, integer $error = null )
เพื่ม File ลงในคอลเล็คชั่น.
เพื่ม File ลงในคอลเล็คชั่น.
Parameters
- $name
- ชื่อของ Input
- $path
- ไฟล์อัปโหลด รวมพาธ
- $originalName
- ชื่อไฟล์ที่อัปโหลด
- $mimeType
- MIME Type
- $size
- ขนาดไฟล์อัปโหลด
- $error
- ข้อผิดพลาดการอัปโหลด UPLOAD_ERR_XXX
|
public
Kotchasan\Http\UploadedFile
|
#
current( )
คืนค่า UploadedFile รายการปัจจุบัน.
คืนค่า UploadedFile รายการปัจจุบัน.
Returns
Implementation of
|
public
Kotchasan\Http\UploadedFile
|
#
get( string|integer $key )
อ่าน File ที่ต้องการ.
Parameters
Returns
|
public
string
|
#
key( )
คืนค่าคีย์หรือลำดับของ UploadedFile ในลิสต์รายการ.
คืนค่าคีย์หรือลำดับของ UploadedFile ในลิสต์รายการ.
Returns
string
Implementation of
|
public
Kotchasan\Http\UploadedFile
|
#
next( )
คืนค่า UploadedFile รายการถัดไป.
คืนค่า UploadedFile รายการถัดไป.
Returns
Implementation of
|
public
|
#
rewind( )
inherited from Iterator.
Implementation of
|
public
boolean
|
#
valid( )
Returns
boolean
Implementation of
|