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