Search moodle.org's
Developer Documentation

See Release Notes

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

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: 152 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mime_Id:: (5 methods):
  __construct()
  __toString()
  idArithmetic()
  _idArithmetic()
  isChild()


Class: Horde_Mime_Id  - X-Ref

Provides methods to manipulate/query MIME IDs.

__construct($id)   X-Ref
Constructor.

param: string $id  MIME ID.

__toString()   X-Ref
No description

idArithmetic($action, array $options = array()   X-Ref
Performs MIME ID "arithmetic".

param: string $action  One of:
param: array $options  Additional options:
return: mixed  The resulting ID string, or null if that ID can not

_idArithmetic($id, $action, $options)   X-Ref


isChild($id)   X-Ref
Determines if a given MIME ID lives underneath a base ID.

param: string $id  The MIME ID to query.
return: boolean  Whether $id lives under the base ID ($this->id).