Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setCapabilityUpdate example
$storePlugin
->
setActive
(
$localPlugin
->
isActive
(
)
)
;
$storePlugin
->
setSource
(
$localPlugin
->
getSource
(
)
)
;
$storePlugin
->
setLicence
(
$localPlugin
->
getLicence
(
)
)
;
$storePlugin
->
setCapabilityActivate
(
$localPlugin
->
hasCapabilityActivate
(
)
)
;
$storePlugin
->
setCapabilityInstall
(
$localPlugin
->
hasCapabilityInstall
(
)
)
;
$storePlugin
->
setCapabilitySecureUninstall
(
$localPlugin
->
hasCapabilitySecureUninstall
(
)
)
;
$storePlugin
->
setLocalDescription
(
$localPlugin
->
getLocalDescription
(
)
)
;
$storePlugin
->
setLink
(
$localPlugin
->
getLink
(
)
)
;
$storePlugin
->
setRedirectToStore
(
$localPlugin
->
isRedirectToStore
(
)
)
;
$storePlugin
->
setLowestPrice
(
$localPlugin
->
getLowestPrice
(
)
)
;
$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
(
)
)
;