createPost

Description

Inserts a new post into the database with the appropriate options.

Syntax

createPost ()



Parameter $

Expected type:
Description:


Notes

  • Called from the Post2() function in Sources/Post.php after the input has been validated
  • Sets up default values for the items which are marked optional
  • Updates all the appropriate statistics
  • Updates the custom search index, if there is one
Advertisement: