setLicenceCheck example

$localPlugin->setUseContactForm($storePlugin->useContactForm());
        $localPlugin->setInstallationManual($storePlugin->getInstallationManual());
        $localPlugin->setChangelog($storePlugin->getChangelog());
        $localPlugin->setPrices($storePlugin->getPrices());
        $localPlugin->setComments($storePlugin->getComments());
        $localPlugin->setPictures($storePlugin->getPictures());
        $localPlugin->setProducer($storePlugin->getProducer());
        $localPlugin->setIconPath($storePlugin->getIconPath());
        $localPlugin->setAddons($storePlugin->getAddons());
        $localPlugin->setEncrypted($storePlugin->isEncrypted());
        $localPlugin->setCertified($storePlugin->isCertified());
        $localPlugin->setLicenceCheck($storePlugin->hasLicenceCheck());
        if (!$localPlugin->hasCapabilityDummy()) {
            $localPlugin->setCapabilityDummy($storePlugin->hasCapabilityDummy());
        }
    }

    public function assignLocalPluginStruct(PluginStruct $storePlugin, PluginStruct $localPlugin)
    {
        $storePlugin->setId($localPlugin->getId());
        $storePlugin->setInstallationDate($localPlugin->getInstallationDate());
        $storePlugin->setActive($localPlugin->isActive());
        $storePlugin->setSource($localPlugin->getSource());
        

    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) {
                
Home | Imprint | This part of the site doesn't use cookies.