메소드 |
설명 |
|
checkSettings ( ) : array |
Checks the settings and optionally returns an array with warnings |
|
delete ( mixed $ids ) |
Deletes one or more items |
|
deleteCategory ( integer $id ) |
Deletes a category |
|
deleteCategoryAllowed ( integer $id ) : boolean |
Checks if it is allowed to delete the a category |
|
deleteComments ( array $ids ) |
Deletes one or more comments |
|
deleteSpamComments ( ) |
Delete all spam |
|
exists ( integer $id ) : boolean |
Checks if an item exists |
|
existsCategory ( integer $id ) : integer |
Checks if a category exists |
|
existsComment ( integer $id ) : integer |
Checks if a comment exists |
|
get ( integer $id ) : array |
Get all data for a given id |
|
getAllCommentsForStatus ( string $status, integer $limit = 30, integer $offset ) : array |
Get the comments |
|
getByTag ( integer $tagId ) : array |
Get all items by a given tag id |
|
getCategories ( boolean $includeCount = false ) : array |
Get all categories |
|
getCategory ( integer $id ) : array |
Get all data for a given id |
|
getCategoryId ( string $title, string $language = null ) : integer |
Get a category id by title |
|
getComment ( integer $id ) : array |
Get all data for a given id |
|
getCommentStatusCount ( ) : array |
Get a count per comment |
|
getComments ( array $ids ) : array |
Get multiple comments at once |
|
getLatestComments ( string $status, integer $limit = 10 ) : array |
Get the latest comments for a given type |
|
getMaximumId ( ) : integer |
Get the maximum id |
|
getRevision ( integer $id, integer $revisionId ) : array |
Get all data for a given revision |
|
getURL ( string $url, integer $id = null ) : string |
Retrieve the unique URL for an item |
|
getURLForCategory ( string $url, integer $id = null ) : string |
Retrieve the unique URL for a category |
|
insert ( array $item ) : integer |
Inserts an item into the database |
|
insertCategory ( array $item, array $meta = null ) : integer |
Inserts a new category into the database |
|
insertComment ( array $comment ) : integer |
Inserts a new comment (Taken from FrontendBlogModel) |
|
insertCompletePost ( array $item, array $meta = [], array $tags = [], array $comments = [] ) : integer |
Inserts a complete post item based on some arrays of data |
|
reCalculateCommentCount ( array $ids ) : boolean |
Recalculate the commentcount |
|
update ( array $item ) : integer |
Update an existing item |
|
updateCategory ( array $item, array $meta = null ) : integer |
Update an existing category |
|
updateComment ( array $item ) : integer |
Update an existing comment |
|
updateCommentStatuses ( array $ids, string $status ) |
Updates one or more comments' status |
|
updateRevision ( $revision_id, $item ) |
Update a page revision without generating a new revision. |
|