mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Ready to create posts
This commit is contained in:
@ -244,6 +244,22 @@ class Posts {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a post
|
||||
*
|
||||
* @param toCome
|
||||
* @return int The ID of the created post or -1 in case of failure
|
||||
*/
|
||||
public function create(string $kind_page, int $kind_id, int $userID, string $content,
|
||||
int $visibility, string $kind, int $file_size = 0,
|
||||
string $file_type = null, string $file_path = null, int $videoID = 0,
|
||||
int $time_end = 0, string $link_url = null, string $link_title = null,
|
||||
string $link_description = null, string $link_image = null, string $survey_question = null,
|
||||
array $survey_answers = array()) : int {
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch a single post from the database
|
||||
*
|
||||
|
Reference in New Issue
Block a user