CodeExplorer ProducerStruct example
if (isset($data['installation_date'
]) && !
empty($data['installation_date'
])) { $date =
new DateTime($data['installation_date'
]);
$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();