FileAccess Orion

TextPart extends AbstractPart
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$body  : mixed
$charset  : mixed
$disposition  : mixed
$encoders  : mixed
$encoding  : mixed
$headers  : mixed
$name  : mixed
$subtype  : mixed
__construct()  : mixed
__sleep()  : array<string|int, mixed>
__wakeup()  : mixed
asDebugString()  : string
bodyToIterable()  : iteratable<string|int, mixed>
bodyToString()  : string
getBody()  : string
getHeaders()  : Headers
getMediaSubtype()  : string
getMediaType()  : string
getPreparedHeaders()  : Headers
setDisposition()  : $this
setName()  : $this
Sets the name of the file (used by FormDataPart).
toIterable()  : iteratable<string|int, mixed>
toString()  : string
chooseEncoding()  : string
getEncoder()  : ContentEncoderInterface

Properties

$encoders

private static mixed $encoders = []

Methods

__construct()

public __construct(resource|string $body[, string|null $charset = 'utf-8' ][, mixed $subtype = 'plain' ][, string $encoding = null ]) : mixed
Parameters
$body : resource|string
$charset : string|null = 'utf-8'
$subtype : mixed = 'plain'
$encoding : string = null
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

bodyToIterable()

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

bodyToString()

public bodyToString() : string
Return values
string

getBody()

public getBody() : string
Return values
string

getMediaSubtype()

public getMediaSubtype() : string
Return values
string

getMediaType()

public getMediaType() : string
Return values
string

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

Search results