Method |
Description |
|
__construct ( ) |
Initialises the model object of the mediua object |
|
activity_enabled ( ) : boolean |
Check if BuddyPress and the activity component are enabled |
|
add ( type $uploaded, type $file_object ) : type |
Generic method to add a media |
|
add_meta ( array $attachments, array $custom_fields ) : boolean |
|
|
add_taxonomy ( array $attachments, array $taxonomies ) |
Adds taxonomy |
|
delete ( integer $id, boolean $core = false, boolean $delete_activity = true ) : boolean |
Generic method to delete a media |
|
delete_hook ( ) |
Adds a hook to delete_attachment tag called
when a media is deleted externally out of rtMedia context |
|
delete_wordpress_attachment ( integer $id ) : boolean |
Generic method to delete a media from wordpress media library ( other than by rtMedia ) |
|
generate_post_array ( type $uploaded, type $file_object ) : type |
|
|
image_sizes ( type $sizes ) : type |
|
|
import_attachment ( ) |
Imports attachment as media |
|
insert_activity ( $id, $media, $activity_text = false ) |
|
|
insert_album ( type $attributes ) : integer |
|
|
insert_attachment ( type $attachments, type $file_object ) : array |
|
|
insertmedia ( array $attachment_ids, array $uploaded, $file_object ) : array |
|
|
is_multisite ( ) : boolean |
Helper method to check for multisite - will add a few additional checks
for handling taxonomies |
|
media_nonce_generator ( $id, boolean $echo = true ) : string |
Generate nonce |
|
move ( type $media_id, type $album_id ) : boolean |
Move a media from one album to another |
|
reassign_wordpress_user ( integer $user_id, $reassign ) |
Method to reassign media to another user while deleting user |
|
set_media_type ( $mime_type, $file_object ) |
|
|
update ( $id, $data, integer $media_id ) : boolean |
Generic method to update a media. media details can be changed from this method |
|
verify_nonce ( string $mode ) : boolean |
Method verifies the nonce passed while performing any CRUD operations
on the media. |
|