Method | Description | |
---|---|---|
filterVisibleIds ( array $ids, |
Filter a list of post IDs to only include posts that are visible to a certain user. | |
findByIds ( array $ids, |
Find posts by their IDs, optionally making sure they are visible to a certain user. | |
findOrFail ( integer $id, |
Find a post by ID, optionally making sure it is visible to a certain user, or throw an exception. | |
findWhere ( array $where = [], |
Find posts that match certain conditions, optionally making sure they are visible to a certain user, and/or using other criteria. | |
getIndexForNumber ( integer $discussionId, integer $number, |
Get the position within a discussion where a post with a certain number is. If the post with that number does not exist, the index of the closest post to it will be returned. | |
query ( ) : |
Get a new query builder for the posts table. |
Method | Description | |
---|---|---|
getDiscussionsForPosts ( $postIds, |
||
queryIds ( array $ids, |
public filterVisibleIds ( array $ids, |
||
$ids | array | |
$actor | ||
return | array |
public findOrFail ( integer $id, |
||
$id | integer | |
$actor | ||
return |
protected getDiscussionsForPosts ( $postIds, |
||
$postIds | ||
$actor | ||
return | mixed |
public query ( ) : |
||
return |