PHP Class Locker\Helpers\Attachments

Show file Open project: learninglocker/learninglocker Class Usage Examples

Public Methods

Method Description
setAttachments ( $content_type, $content ) : array Get statements and attachments from submitted content

Private Methods

Method Description
getBoundary ( String $content_type ) : String Gets the boundary from the content type.
getHeaders ( String $raw_headers, String $delim ) : [String Gets the boundary from the content type.
validateHeaders ( array $headers, array $sha_hashes ) Validates the attachment headers.

Method Details

setAttachments() static public method

Get statements and attachments from submitted content
static public setAttachments ( $content_type, $content ) : array
$content_type
$content
return array