ICanBoogie
  • Documentation
  • API Reference
  • HTTP v2.5.0
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
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
┗ 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 $type : string

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

public $filename : string

The filename-parm part of the content disposition.

HTTP v2.5.0 – Check on GitHub – API documentation generated by ApiGen