ICanBoogie/HTTP v2.4.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Dispatcher
      • Headers
      • Request

Classes

  • CacheControl
  • ContentDisposition
  • ContentType
  • Date
  • Header
  • HeaderParameter

Class ContentDisposition

Representation of the Content-Disposition header field.

<?php

use ICanBoogie\HTTP\Headers\ContentDisposition;

$cd = new ContentDisposition;
$cd->type = attachment;
$cd->filename = "Résumé en €.csv";

echo $cd; // attachment; filename*=UTF-8''R%C3%A9sum%C3%A9%20en%20%E2%82%AC.csv
ICanBoogie\HTTP\Headers\Header implements ArrayAccess
Extended by ICanBoogie\HTTP\Headers\ContentDisposition
Namespace: ICanBoogie\HTTP\Headers
See: http://tools.ietf.org/html/rfc2616#section-19.5.1
See: http://tools.ietf.org/html/rfc6266
Located at Headers/ContentDisposition.php

Methods summary

public
# __construct( string $value = null, array $attributes = [] )

Defines the filename parameter.

Defines the filename parameter.

Parameters

$value
$attributes
$parameters

Inheritdoc

Overrides

ICanBoogie\HTTP\Headers\Header::__construct

Methods inherited from ICanBoogie\HTTP\Headers\Header

__get(), __set(), __toString(), __unset(), from(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), parse()

Constants summary

Constants inherited from ICanBoogie\HTTP\Headers\Header

VALUE_ALIAS

Properties summary

Properties inherited from ICanBoogie\HTTP\Headers\Header

$parameters, $value

Magic properties

public string $type

The disposition-type part of the content disposition. Alias to ICanBoogie\HTTP\Headers\Header::$value.

public string $filename

The filename-parm part of the content disposition.

ICanBoogie/HTTP v2.4.0 API documentation generated by ApiGen