PHP WebSocket2 Library
PHP5 Library for browsing web
|
HTTP attachment base class. More...
Public Member Functions | |
__construct ($filename) | |
Constructor. More... | |
setFilename ($filename) | |
Sets attachment file name. More... | |
setContentType ($content_type) | |
Sets attachment content-type. More... | |
getFilename () | |
Returns attachment file name. More... | |
getContentType () | |
Returns attachment content-type. More... | |
writeTo (HttpSocket $socket) | |
Writes raw attachment data to HttpSocket $socket. More... | |
getSize () | |
Returns attachment size in bytes. More... | |
HTTP attachment base class.
__construct | ( | $filename | ) |
Constructor.
string | $filename | Attachment file name (this will be sent over HTTP) |
getContentType | ( | ) |
Returns attachment content-type.
string | Attachment content-type (or null, if no content-type present) |
getFilename | ( | ) |
Returns attachment file name.
string | Attachment file name |
|
abstract |
Returns attachment size in bytes.
int | Attachment size in bytes |
setContentType | ( | $content_type | ) |
Sets attachment content-type.
string | $content_type | Attachment content-type or null, if no content-type should be supplied |
setFilename | ( | $filename | ) |
Sets attachment file name.
string | $filename | Attachment file name (this will be sent over HTTP) |
|
abstract |
Writes raw attachment data to HttpSocket $socket.
HttpSocket | $socket | Socket to send data to |