[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/mimemailparser/ -> attachment.class.php (summary)

(no description)

File Size: 136 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MimeMailParser_attachment:: (9 methods):
  __construct()
  getFilename()
  getContentType()
  getContentDisposition()
  getHeaders()
  getFileExtension()
  read()
  getContent()
  __get()


Class: MimeMailParser_attachment  - X-Ref

Model of an Attachment

__construct($filename, $content_type, $stream, $content_disposition = 'attachment', $headers = array()   X-Ref


getFilename()   X-Ref
retrieve the attachment filename

return: String

getContentType()   X-Ref
Retrieve the Attachment Content-Type

return: String

getContentDisposition()   X-Ref
Retrieve the Attachment Content-Disposition

return: String

getHeaders()   X-Ref
Retrieve the Attachment Headers

return: String

getFileExtension()   X-Ref
Retrieve the file extension

return: String

read($bytes = 2082)   X-Ref
Read the contents a few bytes at a time until completed
Once read to completion, it always returns false

param: $bytes Int[optional]
return: String

getContent()   X-Ref
Retrieve the file content in one go
Once you retrieve the content you cannot use MimeMailParser_attachment::read()

return: String

__get($name)   X-Ref
Allow the properties
MimeMailParser_attachment::$name,
MimeMailParser_attachment::$extension
to be retrieved as public properties

param: $name Object



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1