StreamManagerInterface
Table of Contents
Methods
-
addPinnedFeedIds()
: mixed
-
addSponsoredFeed()
: void
-
fetchPinnedFeeds()
: void
-
fetchSponsoredFeeds()
: array<string|int, mixed>
-
fetchStream()
: mixed
-
fetchStreamContinuous()
: void
-
getEagerLoads()
: array<string|int, mixed>
-
getFeedSortView()
: array<string|int, mixed>
-
getIsGreaterThanLastFeed()
: bool
-
getLimit()
: int
-
getOwnerId()
: int|null
-
getPinnedFeedIds()
: array<string|int, mixed>
-
getSelect()
: array<string|int, mixed>
-
getSortFields()
: array<string|int, mixed>
-
getSortType()
: string
-
getSortView()
: string
-
getSponsoredFeedLimit()
: int
-
getStatus()
: array<string|int, mixed>
-
getUserId()
: int|null
-
hasAdditionalConditions()
: bool
-
isApproved()
: $this
-
isDenied()
: $this
-
isOnlyFriends()
: bool
-
isPending()
: $this
-
isPreviewTag()
: int
-
isRemoved()
: $this
-
isSearchByStreamId()
: bool
-
isViewHashtag()
: bool
-
isViewOnProfile()
: bool
-
isViewSearch()
: bool
-
setAdditionalConditions()
: $this
-
setHashtag()
: $this
-
setIsGreaterThanLastFeed()
: $this
-
setIsViewHashtag()
: $this
-
setIsViewOnProfile()
: $this
-
setIsViewSearch()
: $this
-
setLimit()
: $this
-
setLoadedSponsoredFeedIds()
: $this
-
setOnlyFriends()
: $this
-
setOwnerId()
: $this
-
setPreviewTag()
: $this
-
setSearchByStreamId()
: $this
-
setSearchString()
: $this
-
setSelect()
: $this
-
setSortFields()
: $this
-
setStatus()
: $this
-
setUser()
: $this
-
setUserId()
: $this
-
toFeeds()
: Collection
addPinnedFeedIds()
public
addPinnedFeedIds(Collection $collection) : mixed
Parameters
-
$collection
: Collection
-
public
addSponsoredFeed(Collection $collection) : void
Parameters
-
$collection
: Collection
-
fetchPinnedFeeds()
public
fetchPinnedFeeds() : void
public
fetchSponsoredFeeds([array<string|int, mixed>|null $loadedSponsoredFeedIds = null ]) : array<string|int, mixed>
Parameters
-
$loadedSponsoredFeedIds
: array<string|int, mixed>|null
= null
-
Return values
array<string|int, mixed>
fetchStream()
public
fetchStream([int|null $lastFeedId = null ][, string|null $timeFrom = null ][, string|null $timeTo = null ]) : mixed
Parameters
-
$lastFeedId
: int|null
= null
-
-
$timeFrom
: string|null
= null
-
-
$timeTo
: string|null
= null
-
fetchStreamContinuous()
public
fetchStreamContinuous(Collection $result, int $need, int|null $lastFeedId, int $try) : void
Parameters
-
$result
: Collection
-
-
$need
: int
-
-
$lastFeedId
: int|null
-
-
$try
: int
-
getEagerLoads()
public
getEagerLoads() : array<string|int, mixed>
Return values
array<string|int, mixed>
getFeedSortView()
public
getFeedSortView() : array<string|int, mixed>
Return values
array<string|int, mixed>
getIsGreaterThanLastFeed()
public
getIsGreaterThanLastFeed() : bool
getLimit()
public
getLimit() : int
getOwnerId()
public
getOwnerId() : int|null
getPinnedFeedIds()
public
getPinnedFeedIds() : array<string|int, mixed>
Return values
array<string|int, mixed>
getSelect()
public
getSelect() : array<string|int, mixed>
Return values
array<string|int, mixed>
getSortFields()
public
getSortFields() : array<string|int, mixed>
Return values
array<string|int, mixed>
getSortType()
public
getSortType() : string
getSortView()
public
getSortView() : string
public
getSponsoredFeedLimit() : int
getStatus()
public
getStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>
getUserId()
public
getUserId() : int|null
hasAdditionalConditions()
public
hasAdditionalConditions() : bool
isApproved()
public
isApproved() : $this
isDenied()
public
isDenied() : $this
isOnlyFriends()
public
isOnlyFriends() : bool
isPending()
public
isPending() : $this
isPreviewTag()
public
isPreviewTag() : int
isRemoved()
public
isRemoved() : $this
isSearchByStreamId()
public
isSearchByStreamId() : bool
isViewHashtag()
public
isViewHashtag() : bool
isViewOnProfile()
public
isViewOnProfile() : bool
isViewSearch()
public
isViewSearch() : bool
setAdditionalConditions()
public
setAdditionalConditions(array<string|int, mixed> $additionalConditions) : $this
Parameters
-
$additionalConditions
: array<string|int, mixed>
-
setHashtag()
public
setHashtag(string $hashtag) : $this
Parameters
-
$hashtag
: string
-
setIsGreaterThanLastFeed()
public
setIsGreaterThanLastFeed([bool $value = true ]) : $this
Parameters
-
$value
: bool
= true
-
setIsViewHashtag()
public
setIsViewHashtag(bool $isViewHashtag) : $this
Parameters
-
$isViewHashtag
: bool
-
setIsViewOnProfile()
public
setIsViewOnProfile(bool $isViewOnProfile) : $this
Parameters
-
$isViewOnProfile
: bool
-
setIsViewSearch()
public
setIsViewSearch(bool $isViewSearch) : $this
Parameters
-
$isViewSearch
: bool
-
setLimit()
public
setLimit(int $limit) : $this
Parameters
-
$limit
: int
-
public
setLoadedSponsoredFeedIds(array<string|int, mixed>|null $ids) : $this
Parameters
-
$ids
: array<string|int, mixed>|null
-
setOnlyFriends()
public
setOnlyFriends(bool $onlyFriends) : $this
Parameters
-
$onlyFriends
: bool
-
setOwnerId()
public
setOwnerId(int $ownerId) : $this
Parameters
-
$ownerId
: int
-
setPreviewTag()
public
setPreviewTag(bool $isPreviewTag) : $this
Parameters
-
$isPreviewTag
: bool
-
setSearchByStreamId()
public
setSearchByStreamId(bool $value) : $this
Parameters
-
$value
: bool
-
setSearchString()
public
setSearchString(string $search) : $this
Parameters
-
$search
: string
-
setSelect()
public
setSelect(array<string|int, mixed> $select) : $this
Parameters
-
$select
: array<string|int, mixed>
-
setSortFields()
public
setSortFields(string $view[, string $sortType = MetaFoxConstant::SORT_DESC ]) : $this
Parameters
-
$view
: string
-
-
$sortType
: string
= MetaFoxConstant::SORT_DESC
-
setStatus()
public
setStatus([array<string|int, mixed>|null $status = null ]) : $this
Parameters
-
$status
: array<string|int, mixed>|null
= null
-
setUser()
public
setUser(User $user) : $this
Parameters
-
$user
: User
-
setUserId()
public
setUserId(int $userId) : $this
Parameters
-
$userId
: int
-
toFeeds()
public
toFeeds(array<string|int, mixed> $feedIds) : Collection
Parameters
-
$feedIds
: array<string|int, mixed>
-