Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
isLicenseCheckEnabled example
private
function
createPluginStruct
(
$plugin
)
{
if
(
$plugin
instanceof PluginStruct
)
{
return
$plugin
;
}
$struct
=
new
PluginStruct
(
$plugin
->
getTechnicalName
(
)
)
;
$struct
->
setLabel
(
$plugin
->
getLabel
(
)
)
;
$struct
->
setLicenceCheck
(
$plugin
->
isLicenseCheckEnabled
(
)
)
;
$struct
->
setAvailableVersion
(
$plugin
->
getBinaryVersion
(
)
)
;
$localPlugin
=
$this
->
getPluginModel
(
$plugin
->
getTechnicalName
(
)
)
;
if
(
$localPlugin
)
{
$struct
->
setId
(
$localPlugin
->
getId
(
)
)
;
preg_match
(
'/(\d\.\d\.\d)/',
$localPlugin
->
getVersion
(
)
,
$matches
)
;
$localVersion
=
array_shift
(
$matches
)
;
if
(
$localVersion
)
{