ContentDisposition
class ContentDisposition implements Arrayable, JsonSerializable (View source)
Methods
__construct(ContentDispositionType $type, array $parameters = [])
Constructor.
static ContentDisposition|null
parse(array $tokens)
Parse the disposition from tokens.
ContentDispositionType
type()
Get the disposition type.
array
parameters()
Get the disposition parameters.
string|null
parameter(string $name)
Get a specific parameter value.
string|null
filename()
Get the filename parameter.
bool
isAttachment()
Determine if this is an attachment disposition.
bool
isInline()
Determine if this is an inline disposition.
array
toArray()
Get the array representation.
array
jsonSerialize()
Get the JSON representation.
Details
__construct(ContentDispositionType $type, array $parameters = [])
Constructor.
static ContentDisposition|null
parse(array $tokens)
Parse the disposition from tokens.
ContentDispositionType
type()
Get the disposition type.
array
parameters()
Get the disposition parameters.
string|null
parameter(string $name)
Get a specific parameter value.
string|null
filename()
Get the filename parameter.
bool
isAttachment()
Determine if this is an attachment disposition.
bool
isInline()
Determine if this is an inline disposition.
array
toArray()
Get the array representation.
array
jsonSerialize()
Get the JSON representation.