Method |
Description |
|
addCommentToPost ( array $post, integer $blogPostId, boolean $published = false ) : boolean |
Adds a new comment to a blog post |
|
checkCommentReplyTo ( integer $replyTo, integer $blogPostId ) : mixed |
Make sure we aren't replying to a comment on a different blog post |
|
countByAuthor ( integer $authorId ) : integer |
Return an array of the most $num recent posts, including URL and title |
|
countByCategories ( array $categories = [] ) : integer |
Return an array of the most $num recent posts, including URL and title |
|
countByMonth ( string $year, string $month ) : integer |
Return an array of the most $num recent posts, including URL and title |
|
countBySeries ( integer $seriesId ) : integer |
How many items are in this series? |
|
countByTag ( integer $tag ) : integer |
Return an array of the most $num recent posts, including URL and title |
|
countByYear ( string $year ) : integer |
Return an array of the most $num recent posts, including URL and title |
|
countSeries ( ) : integer |
How many items are in this series? |
|
expandCategory ( integer $category_id, integer $depth ) : array |
Expand a category to include all subcategories |
|
getAuthor ( integer $authorId ) : array |
Return information about the current category |
|
getAuthorBySlug ( string $authorSlug ) : array |
Return information about the current category |
|
getAuthorsForUser ( integer $userId ) : array |
Get all of the authors available for this user to post under |
|
getBlogMenu ( ) : array |
Gets the data necessary for the side menu on blog pages |
|
getBlogPost ( string $year, string $month, string $slug ) : array |
Get a specific blog post |
|
getBlogPostById ( integer $id ) : array |
Get a specific blog post by its row ID |
|
getBlogPostByUniqueId ( string $uniqueID ) : array |
Given a unique ID (shorturl), return the blog post. |
|
getBlogPostUniqueId ( integer $postID ) : string |
Given a blog post ID, just get the unique ID (shorturl) |
|
getCategory ( string $slug ) : array |
Return information about the current category |
|
getCategoryTree ( integer $parent ) : array |
Get all subcategories for a given category (defaults to root) |
|
getCommentCache ( ) : CacheInterface |
Returns the cache container for blog comments: |
|
getCommentDepth ( integer $commentId ) : integer |
|
|
getCommentTree ( integer $blogPostId ) : array |
Get all of the blog comments for a given blog post |
|
getCommentWithChildren ( integer $commentId ) : array |
Get a comment (and all of its replies) |
|
getParentSeries ( integer $seriesId, array $seenIds = [], integer $depth ) : array |
Get all of the parent series that a series belongs to. |
|
getPostTags ( integer $postId ) : array |
Get all of the tags for a particular post |
|
getPostsSeries ( integer $postId ) : array |
Get all of the series' that this post belongs to: |
|
getSeriesById ( integer $id ) : array |
Get information about a series |
|
getSeriesForPost ( integer $postId ) : array |
Get all the series that a given post belongs to. |
|
getSeriesInfo ( string $slug ) : array |
Get information about a series |
|
getSnippet ( array $post, boolean $after = false ) : array |
Get a preview snippet of a blog post |
|
getTag ( string $slug ) : array |
Return information about the current tag |
|
getTagCloud ( ) : array |
Get $num of the most popular tags, paginated to start at $offset |
|
getTags ( integer $num = 10, integer $offset ) : array |
Get $num of the most popular tags, paginated to start at $offset |
|
listAllPublic ( ) : array |
Return all blog posts |
|
listBaseSeries ( integer $num = 20, integer $offset ) : array |
Get all of the base series |
|
listByAuthor ( integer $authorId, integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
listByCategories ( array $categories = [], integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
listByMonth ( string $year, string $month, integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
listBySeries ( integer $seriesId, integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
listByTag ( integer $tagId, integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
listByYear ( string $year, integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|
longURL ( string $shortURL = '' ) : string |
Get the long URL for a given short URL |
|
recentFullPosts ( integer $num = 20, integer $offset ) : array |
Return an array of the most $num recent posts, including URL and title |
|