Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 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: 457 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mime_Headers_ContentParam:: (18 methods):
  __clone()
  __get()
  _setValue()
  _sendEncode()
  getHandles()
  encode()
  _encode()
  _escapeParams()
  setContentParamValue()
  decode()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  serialize()
  __serialize()
  __unserialize()
  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
Serialize (until PHP 7.3)

return: string serialized object state

__serialize()   X-Ref
Serialize (PHP 7.4+)

return: array object state

__unserialize(array $data)   X-Ref
Unserialize (PHP 7.4+)

param: array $data

unserialize($data)   X-Ref
Unserialize (until PHP 7.3)

param: string $data