◆ __construct()
◆ getPostMedia()
getPostMedia |
( |
array |
$params = [] | ) |
|
◆ addPostMedia()
addPostMedia |
( |
int |
$post_id, |
|
|
int |
$media_id, |
|
|
string |
$link_type = 'attachment' |
|
) |
| |
Attaches a media to a post.
- Parameters
-
int | $post_id | The post identifier |
int | $media_id | The media identifier |
string | $link_type | The link type (default: attachment) |
References dcCore\app(), and getPostMedia().
◆ removePostMedia()
removePostMedia |
( |
int |
$post_id, |
|
|
int |
$media_id, |
|
|
?string |
$link_type = null |
|
) |
| |
Detaches a media from a post.
- Parameters
-
int | $post_id | The post identifier |
int | $media_id | The media identifier |
string | $link_type | The link type |
References dcCore\app().
◆ POST_MEDIA_TABLE_NAME
const POST_MEDIA_TABLE_NAME = 'post_media' |
◆ $con
◆ $table
The documentation for this class was generated from the following file: