Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getUpdateDate example
$storePlugin
->
setCapabilityUpdate
(
$localPlugin
->
hasCapabilityUpdate
(
)
)
;
$updateAvailable
=
version_compare
(
$storePlugin
->
getVersion
(
)
,
$localPlugin
->
getVersion
(
)
)
;
$storePlugin
->
setUpdateAvailable
(
(bool)
(
$updateAvailable
== 1
)
)
;
$storePlugin
->
setAvailableVersion
(
$storePlugin
->
getVersion
(
)
)
;
$storePlugin
->
setVersion
(
$localPlugin
->
getVersion
(
)
)
;
$storePlugin
->
setFormId
(
$localPlugin
->
getFormId
(
)
)
;
$storePlugin
->
setUpdateDate
(
$localPlugin
->
getUpdateDate
(
)
)
;
$storePlugin
->
setLocalIcon
(
$localPlugin
->
getLocalIcon
(
)
)
;
if
(
!
$storePlugin
->
hasCapabilityDummy
(
)
)
{
$storePlugin
->
setCapabilityDummy
(
$localPlugin
->
hasCapabilityDummy
(
)
)
;
}
}
/** * @param array $data * * @return CategoryStruct[] */