getByNamespace example

if (empty($prefix)) {
                continue;
            }

            $this->applyOperations($operations$detailIds);
        }

        $entityManager->flush();

        // As of Shopware 4.1.3 clearing the cache via event is possible. As this is quite slow, however,         // this function is optional and disabled by default.         $clearCache = $this->getConfig()->getByNamespace('SwagMultiEdit', 'clearCache', false);
        if (!$clearCache) {
            return;
        }

        // Notify event - you might want register for this in order to clear the cache?         foreach ($this->getDqlHelper()->getIdForForeignEntity('article', $detailIds) as $productId) {
            $this->getDqlHelper()->getEventManager()->notify(
                'Shopware_Plugins_HttpCache_InvalidateCacheId',
                ['subject' => $this, 'cacheId' => 'a' . $productId]
            );
        }
    }

            if (isset($_attr['namespace'])) {
                return '<?php echo Shopware()->Config()->getByNamespace(' . $_attr['namespace'] . ', ' . $return . '); ?>';
            }

            return '<?php echo Shopware()->Config()->get(' . $return . '); ?>';
        }

        $name = substr($_attr['name'], 1, -1);
        if (isset($_attr['namespace'])) {
            $namespace = substr($_attr['namespace'], 1, -1);
            $value = Shopware()->Config()->getByNamespace($namespace$name);
        } else {
            $value = Shopware()->Config()->get($name);
        }

        if ($value !== null) {
            return '<?php echo ' . var_export($value, true) . ';?>';
        }
        if (isset($_attr['default'])) {
            return '<?php echo ' . $_attr['default'] . ';?>';
        }

        

    public function create($detailIds$operations$newBackup$id)
    {
        // When backups are disabled, return         if (!$this->getConfig()->getByNamespace('MultiEdit', 'enableBackup', true)) {
            return;
        }

        $name = $this->backupBaseName . $id;

        $this->buildAffectedTableArray($operations);
        $this->outputPath = $this->getOutputPath($name);

        // Dump every single affected table into a own file         foreach ($this->getAffectedTables() as $table) {
            $ids = $this->getDqlHelper()->getIdForForeignEntity($this->getPrefixFromTable($table)$detailIds);
            
Home | Imprint | This part of the site doesn't use cookies.