메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
getDiscussionsForPosts ( $postIds, |
||
queryIds ( array $ids, |
public filterVisibleIds ( array $ids, |
||
$ids | array | |
$actor | ||
리턴 | array |
public findOrFail ( integer $id, |
||
$id | integer | |
$actor | ||
리턴 |
protected getDiscussionsForPosts ( $postIds, |
||
$postIds | ||
$actor | ||
리턴 | mixed |
public query ( ) : |
||
리턴 |