/functions/attachment_common.php

Description

attachment_common.php

This file provides the handling of often-used attachment types.

  • filesource: Source Code for this file
  • todo: document attachment $type hook arguments
  • version: $Id: attachment_common.php,v 1.45 2006/10/06 19:59:55 stevetruckstuff Exp $
  • license: GNU Public License
  • copyright: © 1999-2006 The SquirrelMail Project Team
Variables
array $FileExtensionToMimeType (line 25)

Mapping of file extensions to mime types

Used for application/octet-stream mime type detection. Supported extensions: bmp, gif, htm, html, jpg, jpeg, php, png, rtf, txt, patch (since 1.4.2), vcf

Functions
attachment_common_link_html (line 178)

Adds href and text keys to attachment_common array for html attachments

  • since: 1.2.0
void attachment_common_link_html ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
attachment_common_link_image (line 200)

Adds href and text keys to attachment_common array for image attachments

  • since: 1.2.0
void attachment_common_link_image ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
attachment_common_link_message (line 162)

Adds href and text keys to attachment_common array for rfc822 attachments

  • since: 1.2.6
void attachment_common_link_message ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
attachment_common_link_text (line 123)

Adds href and text keys to attachment_common array for text attachments

  • since: 1.2.0
void attachment_common_link_text ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
attachment_common_link_vcard (line 228)

Adds href and text keys to attachment_common array for vcard attachments

  • since: 1.2.0
void attachment_common_link_vcard ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
attachment_common_octet_stream (line 248)

Processes octet-stream attachments.

Calls attachment_common-load_mime_types and attachment $type hooks.

  • since: 1.2.0
void attachment_common_octet_stream ( &$Args, array $Args)
  • array $Args: attachment $type hook arguments
  • &$Args
register_attachment_common (line 112)

Function which optimizes readability of the above code Registers 'attachment $type' hooks.

  • since: 1.2.0
void register_attachment_common (string $type, string $func)
  • string $type: attachment type
  • string $func: suffix of attachment_common_* function, which handles $type attachments.

Documentation generated on Sat, 07 Oct 2006 16:08:54 +0300 by phpDocumentor 1.3.0RC6