FileAccess Orion

DataPart extends TextPart
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$body  : mixed
$charset  : mixed
$cid  : mixed
$disposition  : mixed
$encoders  : mixed
$encoding  : mixed
$filename  : mixed
$handle  : mixed
$headers  : mixed
$mediaType  : mixed
$mimeTypes  : mixed
$name  : mixed
$subtype  : mixed
__construct()  : mixed
__destruct()  : mixed
__sleep()  : array<string|int, mixed>
__wakeup()  : mixed
asDebugString()  : string
asInline()  : $this
bodyToIterable()  : iteratable<string|int, mixed>
bodyToString()  : string
fromPath()  : self
getBody()  : string
getContentId()  : string
getHeaders()  : Headers
getMediaSubtype()  : string
getMediaType()  : string
getPreparedHeaders()  : Headers
hasContentId()  : bool
setDisposition()  : $this
setName()  : $this
Sets the name of the file (used by FormDataPart).
toIterable()  : iteratable<string|int, mixed>
toString()  : string
chooseEncoding()  : string
generateContentId()  : string
getEncoder()  : ContentEncoderInterface

Properties

$encoders

private static mixed $encoders = []

$mimeTypes

private static mixed $mimeTypes

Methods

__construct()

public __construct(resource|string $body[, string $filename = null ][, string $contentType = null ][, string $encoding = null ]) : mixed
Parameters
$body : resource|string
$filename : string = null
$contentType : string = null
$encoding : string = null
Return values
mixed

__destruct()

public __destruct() : mixed
Return values
mixed

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__wakeup()

public __wakeup() : mixed
Return values
mixed

asDebugString()

public asDebugString() : string
Return values
string

asInline()

public asInline() : $this
Return values
$this

bodyToIterable()

public abstract bodyToIterable() : iteratable<string|int, mixed>
Return values
iteratable<string|int, mixed>

bodyToString()

public abstract bodyToString() : string
Return values
string

fromPath()

public static fromPath(string $path[, string $name = null ][, string $contentType = null ]) : self
Parameters
$path : string
$name : string = null
$contentType : string = null
Return values
self

getBody()

public getBody() : string
Return values
string

getContentId()

public getContentId() : string
Return values
string

getMediaSubtype()

public abstract getMediaSubtype() : string
Return values
string

getMediaType()

public getMediaType() : string
Return values
string

hasContentId()

public hasContentId() : bool
Return values
bool

setDisposition()

public setDisposition(string $disposition) : $this
Parameters
$disposition : string

one of attachment, inline, or form-data

Return values
$this

setName()

Sets the name of the file (used by FormDataPart).

public setName(mixed $name) : $this
Parameters
$name : mixed
Return values
$this

toIterable()

public toIterable() : iteratable<string|int, mixed>
Return values
iteratable<string|int, mixed>

toString()

public toString() : string
Return values
string

chooseEncoding()

private chooseEncoding() : string
Return values
string

generateContentId()

private generateContentId() : string
Return values
string

Search results