Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setWebsite example
$plugin
->
setInstallationDate
(
$date
)
;
}
if
(
isset
(
$data
[
'update_date'
]
)
&& !
empty
(
$data
[
'update_date'
]
)
)
{
$date
=
new
DateTime
(
$data
[
'update_date'
]
)
;
$plugin
->
setUpdateDate
(
$date
)
;
}
if
(
isset
(
$data
[
'author'
]
)
&& !
empty
(
$data
[
'author'
]
)
)
{
$producer
=
new
ProducerStruct
(
)
;
$producer
->
setName
(
$data
[
'author'
]
)
;
$producer
->
setWebsite
(
$data
[
'link'
]
)
;
$plugin
->
setProducer
(
$producer
)
;
}
if
(
!
empty
(
$data
[
'changelog'
]
)
)
{
$plugin
->
setChangelog
(
$data
[
'changelog'
]
)
;
}
if
(
isset
(
$data
[
'__licence_id'
]
)
&& !
empty
(
$data
[
'__licence_id'
]
)
)
{
$licence
=
new
LicenceStruct
(
)
;
$licence
->
setIconPath
(
$plugin
->
getIconPath
(
)
)
;
$licence
->
setTechnicalName
(
$plugin
->
getTechnicalName
(
)
)
;