Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

Copyright 2014-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2014-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 429 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mime_Headers_ContentParam:: (16 methods):
  __clone()
  __get()
  _setValue()
  _sendEncode()
  getHandles()
  encode()
  _encode()
  _escapeParams()
  setContentParamValue()
  decode()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  serialize()
  unserialize()


Class: Horde_Mime_Headers_ContentParam  - X-Ref

This class represents a header element that contains MIME content
parameters (RFCs 2045, 2183, 2231).

__clone()   X-Ref
No description

__get($name)   X-Ref
No description

_setValue($data)   X-Ref

param: mixed $data  Either an array (interpreted as a list of

_sendEncode($opts)   X-Ref

param: array $opts  See encode().

getHandles()   X-Ref
No description

encode(array $opts = array()   X-Ref
Encodes a MIME content parameter string pursuant to RFC 2183 & 2231
(Content-Type and Content-Disposition headers).

param: array $opts  Options:
return: array  The encoded parameter string (US-ASCII).

_encode($name, $val, $opts)   X-Ref


_escapeParams($params)   X-Ref
Escape the parameter array.

param: array $params  Parameter array.
return: array  Escaped parameter array.

setContentParamValue($data)   X-Ref
Set the content-parameter base value.

param: string $data  Value.

decode($data)   X-Ref
Decodes a MIME content parameter string pursuant to RFC 2183 & 2231
(Content-Type and Content-Disposition headers).

Stores value/parameter data in the current object.

param: mixed $data  Parameter data. Either an array or a string.

offsetExists($offset)   X-Ref
No description

offsetGet($offset)   X-Ref
No description

offsetSet($offset, $value)   X-Ref
No description

offsetUnset($offset)   X-Ref
No description

serialize()   X-Ref
No description

unserialize($data)   X-Ref
No description