/sources/attachments.php

Description
Functions
attachments_script (line 24)

Show the image of an attachment/thumbnail.

void attachments_script ()
attachment_popup_script (line 216)

Shows an HTML page of all attachments we can access with selection buttons.

void attachment_popup_script ()
has_attachment_access (line 189)

Find if the specified member has access to view the specified attachment.

  • return: Whether the member has attachment access
boolean has_attachment_access (MEMBER $member, AUTO_LINK $id, [?object $connection = NULL])
  • MEMBER $member: The member being checked whether to have the access
  • AUTO_LINK $id: The ID code for the attachment being checked
  • ?object $connection: The database connection to use (NULL: site DB)
render_attachment (line 274)

Get tempcode for a Comcode rich-media attachment.

  • return: The tempcode for the attachment
tempcode render_attachment (array $attributes, array $attachment, string $pass_id, MEMBER $source_member, boolean $as_admin, object The $connection, [?array $highlight_bits = NULL], [?MEMBER $on_behalf_of_member = NULL])
  • array $attributes: A map of the attributes (name=>val) for the tag
  • array $attachment: A map of the attachment properties (name=>val) for the attachment
  • string $pass_id: A special identifier to mark where the resultant tempcode is going to end up (e.g. the ID of a post)
  • MEMBER $source_member: The member who is responsible for this Comcode
  • boolean $as_admin: Whether to check as arbitrary admin
  • object The $connection: database connection to use
  • ?array $highlight_bits: A list of words to highlight (NULL: none)
  • ?MEMBER $on_behalf_of_member: The member we are running on behalf of, with respect to how attachments are handled; we may use this members attachments that are already within this post, and our new attachments will be handed to this member (NULL: member evaluating)

Documentation generated on Sun, 02 Jan 2011 23:08:31 +0000 by phpDocumentor 1.4.3