Méthode |
Description |
|
categoryDescendsFrom ( integer $newParent, integer $categoryId ) : boolean |
Sanity check; don't allow a category to belong to one of its children. |
|
createCategory ( array $post ) : boolean |
Create a new category |
|
createPost ( array $post, boolean $publish = false ) : boolean |
Create (and, optionally, publish) a new blog post. |
|
createSeries ( array $post ) : boolean |
Inserts a new series, and the subsequent items, in the database |
|
createTag ( array $post ) : boolean |
Create a new tag |
|
deleteCategory ( integer $categoryID, integer $moveChildrenTo ) : boolean |
Delete a category and move all related content |
|
deleteComment ( integer $commentId ) : boolean |
Delete this comment and all of its revision history. |
|
deletePost ( array $formData, array $blogPost = [] ) : boolean |
Delete a blog post |
|
deleteSeries ( integer $seriesId ) : boolean |
Permanently remove a blog post series. |
|
editTag ( integer $tagId, array $post ) : boolean |
Rename a tag |
|
getAllSeries ( integer $offset, integer $limit ) : array |
Get all of the series (paginated) |
|
getAllSeriesParents ( array $seriesIds, integer $depth ) : array |
Get all of the series that this series belongs to, recursively. |
|
getBlogPostById ( integer $postId ) : array |
Get information about a blog post |
|
getBlogPostLatestVersion ( integer $postId ) : array |
Get the latest version of a blog post |
|
getBlogPostVersionByUniqueId ( string $uniqueID ) : array |
Get a specific blog post version, given a unique ID |
|
getBlogPostVersions ( integer $postId ) : array |
|
|
getCategoryInfo ( integer $categoryId ) : array |
Get a category |
|
getCategoryParents ( integer $categoryId, integer $depth ) : array |
Get all of a category's parents |
|
getCategoryTree ( integer $parent = null, string $col = 'children', array $seen = [], integer $depth ) : array |
Get a full category tree, recursively, from a given parent |
|
getCommentById ( integer $commentId, boolean $includeReplyTo = true ) : array |
Get a blog comment |
|
getNextVersionUniqueId ( integer $postId, integer $currentVersionId ) : string |
Get the next version's unique ID |
|
getPrevVersionUniqueId ( integer $postId, integer $currentVersionId ) : string |
Get the previous version's unique ID |
|
getSeries ( integer $seriesId ) : array |
Get a single series |
|
getSeriesForAuthor ( integer $authorId, array $exclude = [] ) : array |
Get all of the series for a particular author |
|
getSeriesForUser ( integer $userId, integer $offset, integer $limit ) : array |
Get all of the series for all of the authors the user owns |
|
getSeriesItems ( integer $seriesId ) : array |
Get a single series |
|
getSeriesTree ( integer $current = null, string $col = 'children', array $encountered = [], integer $depth ) : array |
Get a full series tree, recursively, from a given parent |
|
getTagInfo ( integer $tagId ) : array |
Get data on a specific tag |
|
getTags ( ) : array |
Get all of the tags in the database |
|
getTagsForPost ( integer $postId ) : array |
Get a list of all selected blog posts |
|
hideComment ( integer $commentId ) : boolean |
Make a comment invisible on blog posts. |
|
listComments ( integer $offset, integer $limit = 20 ) : array |
List comments |
|
listPosts ( boolean $showAll = false, integer $offset, integer $limit = 20 ) : array |
Get the most recent posts |
|
listPostsForAuthor ( integer $authorId, array $exclude = [] ) : array |
Get all of the series for a particular author |
|
listTags ( integer $offset, integer $limit, string $sort = 'name', boolean $desc = false ) : array |
List tags (paginated, sortable). |
|
numComments ( mixed $published = null ) : integer |
Count the number of posts. trinary:
NULL -> all posts
TRUE -> all published posts
FALSE -> all unpublished posts |
|
numItemsInSeries ( integer $seriesId ) : integer |
Get the number of items in a given series. |
|
numPosts ( mixed $published = null ) : integer |
Count the number of posts. trinary:
NULL -> all posts
TRUE -> all published posts
FALSE -> all unpublished posts |
|
numSeries ( ) : integer |
Count the number of series in the database |
|
numSeriesForUser ( integer $userId ) : integer |
Count the number of series for a user |
|
numTags ( ) : integer |
Count the number of tags |
|
publishComment ( integer $commentId ) : boolean |
Publish an unapproved blog comment. |
|
updateCategory ( integer $id, array $post ) : boolean |
Update a blog category |
|
updateCategorySlug ( integer $id, array $post ) : boolean |
|
|
updatePost ( array $post, array $old, boolean $publish = false ) : boolean |
Update a blog post |
|
updateSeries ( integer $seriesId, array $oldItems, array $post ) : boolean |
Insert/delete/rearrange the contents of a series. |
|