![]() |
IP.Board
3.3.0
|
Public Member Functions | |
| attachmentRemovalCleanup ($attachment) | |
| canBulkRemove ($attach_rel_ids=array()) | |
| canRemove ($attachment) | |
| getAttachmentData ($attach_id) | |
| getSettings () | |
| getSpaceAllowance ($post_key='', $member_id='') | |
| postUploadProcess ($post_key, $rel_id, $args=array()) | |
| renderAttachment ($attach_ids, $rel_ids=array(), $attach_post_key=0) | |
Data Fields | |
| $module = 'ccs' | |
| attachmentRemovalCleanup | ( | $ | attachment | ) |
Cleanup from attachment ermoval
public
| array | Attachment data |
| canBulkRemove | ( | $ | attach_rel_ids = array() | ) |
Determines if you have permission for bulk attachment removal Returns TRUE or FALSE IT really does
public
| array | Ids to check against |
| canRemove | ( | $ | attachment | ) |
Determines if you can remove this attachment Returns TRUE or FALSE IT really does
public
| array | Attachment data |
| getAttachmentData | ( | $ | attach_id | ) |
Checks the attachment and checks for download / show perms
public
| integer | Attachment id |
| getSettings | ( | ) |
Returns an array of settings: 'siu_thumb' = Allow thumbnail creation? 'siu_height' = Height of the generated thumbnail in pixels 'siu_width' = Width of the generated thumbnail in pixels 'upload_dir' = Base upload directory (must be a full path)
You can omit any of these settings and IPB will use the default settings (which are the ones entered into the ACP for post thumbnails)
public
| getSpaceAllowance | ( | $ | post_key = '', |
| $ | member_id = '' |
||
| ) |
Returns an array of the allowed upload sizes in bytes. Return 'space_allowed' as -1 to not allow uploads. Return 'space_allowed' as 0 to allow unlimited uploads Return 'max_single_upload' as 0 to not set a limit
public
| string | MD5 post key |
| id | Member ID |
| postUploadProcess | ( | $ | post_key, |
| $ | rel_id, | ||
| $ | args = array() |
||
| ) |
Recounts number of attachments for the record
public
| string | Post key |
| integer | Related ID |
| array | Arguments for query |
| renderAttachment | ( | $ | attach_ids, |
| $ | rel_ids = array(), |
||
| $ | attach_post_key = 0 |
||
| ) |
Check the attachment and make sure its OK to display
public
| array | Array of ids |
| array | Array of relationship ids |