Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setFreezeUp example
public
function
indexStream
(
CustomerStreamEntity
$stream
,
$offset
= null,
$limit
= null
)
{
$this
->
checkPrivilege
(
'save'
)
;
$result
=
$this
->
updateFrozenState
(
$stream
->
getId
(
)
,
$stream
->
getFreezeUp
(
)
,
$stream
->
getConditions
(
)
)
;
if
(
$result
)
{
$stream
->
setStatic
(
$result
[
'static'
]
)
;
$stream
->
setFreezeUp
(
$result
[
'freezeUp'
]
)
;
}
if
(
$stream
->
getFreezeUp
(
)
!== null ||
$stream
->
isStatic
(
)
)
{
return
;
}
$criteria
=
$this
->criteriaFactory->
createCriteria
(
$stream
->
getId
(
)
)
;
$criteria
->
setFetchCount
(
false
)
;
$criteria
->
offset
(
(int)
$offset
)
;