Constructor & Destructor Documentation
#@- CONSTRUCTOR
- Parameters:
-
- Returns:
- void
Reimplemented in plugin_post.
Member Function Documentation
Swaps the HTML for the nice attachments.
- Parameters:
-
| array | Array of matches from preg_replace_callback |
- Returns:
- string HTML
| bulkArchive |
( |
$ |
archiveIds = array(), |
|
|
$ |
idType = 'attach_rel_id' |
|
) |
| |
Archive attachments Currently this just flags them as archived. It does not physically move the files as this seems a bit pointless as they have to stay in the file system anyway
- Parameters:
-
| array | $archiveIds | |
| string | $idType | |
Removes attachment(s)
- Parameters:
-
| array | $remove_ids | Array of attachment ids to remove |
| string | $id_type | Column to use when deleting, attach_rel_id by default |
- Returns:
- bool
| bulkUnarchive |
( |
$ |
archiveIds = array(), |
|
|
$ |
idType = 'attach_rel_id' |
|
) |
| |
Unarchive attachments Currently this just flags them as unarchived. It does not physically move the files as this seems a bit pointless as they have to stay in the file system anyway
- Parameters:
-
| array | $archiveIds | |
| string | $idType | |
Checks the upload dir. See above. It's not rocket science
- Returns:
- bool
Retrieve attachment types from cache
- Returns:
- array
Gets stuff required for the upload form
- Returns:
- void
Initiates class
- Returns:
- void
Loads child extends class.
- Returns:
- void
Converts post-key attachments into rel_id / rel_module attachments by adding in the correct ID, etc
- Parameters:
-
- Returns:
- array
Uploads and saves file
- Returns:
- mixed void, or an array of new insert ids
Uploads and saves file
- Returns:
- mixed void, or the new insert id
Removes an attachment.
- Returns:
- void
Swaps the HTML for the nice attachments.
- Parameters:
-
| array | Array of HTML blocks to convert: [ rel_id => $html ] |
| array | Relationship ids |
| string | Skin group to use |
- Returns:
- array Array of converted HTML blocks and attach code: [ id => $html ]
Retrieve the HTML for a single attachment
- Parameters:
-
| mixed | Array of attachment data, or an attachment ID |
| string | Skin group to use |
| bool | Whether to wrap with the attachment block wrapper or not |
- Returns:
- string Attachment HTML
Field Documentation
Initial value: array(
'siu_thumb' => 0,
'siu_height' => 0,
'siu_width' => 0,
'allow_monthly_upload_dirs' => 0,
'upload_dir' => ''
)
Initial value: array( 'unlimited' => 'Unlimited',
'not_allowed' => 'Uploading is not allowed' )
The documentation for this class was generated from the following file:
- admin/applications/core/sources/classes/attach/class_attach.php