Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
hasCapabilityInstall example
}
public
function
assignLocalPluginStruct
(
PluginStruct
$storePlugin
, PluginStruct
$localPlugin
)
{
$storePlugin
->
setId
(
$localPlugin
->
getId
(
)
)
;
$storePlugin
->
setInstallationDate
(
$localPlugin
->
getInstallationDate
(
)
)
;
$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
(
)
)
;