StreamManager
in package
Class StreamManager.
Table of Contents
Properties
- $attributes : array<string|int, mixed>
- $continuousTry : int
- $limit : int
- $meta : array<string|int, mixed>
- $privacyRepository : PrivacyMemberRepositoryInterface
- $searchRepository : SearchRepositoryInterface
- $searchText : string
- $user : User|null
- $view : string|null
Methods
- __construct() : mixed
- fetchStreamContinuous() : array<string|int, mixed>
- getAttributes() : array<string|int, mixed>
- getLimit() : int
- getSearchText() : string|null
- getUser() : User|null
- getView() : string|null
- setAttributes() : $this
- setLimit() : self
- setSearchText() : self
- setUser() : self
- setView() : self
- buildQuery() : Builder
- fetchStream() : Collection
Properties
$attributes
protected
array<string|int, mixed>
$attributes
= []
$continuousTry
protected
int
$continuousTry
= 1
$limit
protected
int
$limit
= \MetaFox\Platform\Support\Helper\Pagination::DEFAULT_ITEM_PER_PAGE
$meta
protected
array<string|int, mixed>
$meta
= []
$privacyRepository
protected
PrivacyMemberRepositoryInterface
$privacyRepository
$searchRepository
protected
SearchRepositoryInterface
$searchRepository
$searchText
protected
string
$searchText
= ''
$user
protected
User|null
$user
$view
protected
string|null
$view
= null
Methods
__construct()
public
__construct(SearchRepositoryInterface $searchRepository, PrivacyMemberRepositoryInterface $privacyRepository) : mixed
Parameters
- $searchRepository : SearchRepositoryInterface
- $privacyRepository : PrivacyMemberRepositoryInterface
fetchStreamContinuous()
public
fetchStreamContinuous([mixed $collection = null ][, int|null $need = null ][, int $try = 0 ]) : array<string|int, mixed>
Parameters
- $collection : mixed = null
- $need : int|null = null
- $try : int = 0
Tags
Return values
array<string|int, mixed>getAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getLimit()
public
getLimit() : int
Return values
intgetSearchText()
public
getSearchText() : string|null
Return values
string|nullgetUser()
public
getUser() : User|null
Return values
User|nullgetView()
public
getView() : string|null
Return values
string|nullsetAttributes()
public
setAttributes(array<string|int, mixed> $attributes) : $this
Parameters
- $attributes : array<string|int, mixed>
Return values
$thissetLimit()
public
setLimit(int $limit) : self
Parameters
- $limit : int
Return values
selfsetSearchText()
public
setSearchText(string $searchText) : self
Parameters
- $searchText : string
Return values
selfsetUser()
public
setUser(User $user) : self
Parameters
- $user : User
Return values
selfsetView()
public
setView(string $view) : self
Parameters
- $view : string
Return values
selfbuildQuery()
protected
buildQuery() : Builder
Tags
Return values
BuilderfetchStream()
protected
fetchStream([int|null $limit = null ]) : Collection
Parameters
- $limit : int|null = null