/core/functions_attachment.php

Description

Core Attachment functions in ILance.

  • author: ILance
  • version: $Revision: 1.0.0 $
Functions
fetch_attachment_file (line 81)

Function fetch the full attachment path and actual file(name) for the specified attachment type

  • return: full path and filename to the attachment
string fetch_attachment_file ([string $attachtype = ''], [string $filehash = ''])
  • string $attachtype: attachment type
  • string $filehash: actual filehash
fetch_attachment_path (line 31)

Function fetch the full attachment path for the specified attachment type

  • return: attachment folder
string fetch_attachment_path ([string $attachtype = ''])
  • string $attachtype: attachment type
fetch_attachment_rawdata (line 131)

Function returns logic of attachment storage system and returns back required raw attachment data

  • return: Returns raw attachment file data
string fetch_attachment_rawdata (array $attachment, [boolean $isexternal = false])
  • array $attachment: attachment array
  • boolean $isexternal: (true/false) determines if this attachment is "external" (true) which would indicate a "url" to display an "image/picture".
fetch_attachment_type (line 322)
void fetch_attachment_type ( $type, [ $projectid = ''], [ $otherid = ''])
  • $type
  • $projectid
  • $otherid
is_private_workspace_attachment (line 277)
void is_private_workspace_attachment ([ $attachid = 0])
  • $attachid
move_attachments_to_database (line 467)
void move_attachments_to_database ()
move_attachments_to_filepath (line 415)
void move_attachments_to_filepath ()
print_captcha (line 158)

Function to print out the captcha via GD + FreeType

  • return: Returns image data
string print_captcha ([integer $length = 5])
  • integer $length: length of captcha phrase
save_url_image (line 629)

Function to download and save an attachment from a remote url

  • return: returns true or false
boolean save_url_image ([string $img = ''], [ $fullpath = DIR_AUCTION_ATTACHMENTS])
  • string $img: image url (example: http://server.com/image.gif)
  • $fullpath
unsharpmask (line 529)
void unsharpmask ( &$thumb, [ $amount = 100], [ $radius = .5], [ $threshold = 3])
  • &$thumb
  • $amount
  • $radius
  • $threshold

Documentation generated on Mon, 08 Aug 2011 17:40:58 +0200 by phpDocumentor 1.4.1