Sulu\Bundle\ContentBundle\Version201511240844::iterateStructureNodes PHP Метод

iterateStructureNodes() приватный Метод

Iterates over all nodes of the given type, and upgrades them.
private iterateStructureNodes ( StructureMetadata $structureMetadata, array $properties, boolean $addScheme )
$structureMetadata Sulu\Component\Content\Metadata\StructureMetadata The structure metadata, whose pages have to be upgraded
$properties array The properties which are or contain URL fields
$addScheme boolean Adds the scheme to URLs if true, removes the scheme otherwise
    private function iterateStructureNodes(StructureMetadata $structureMetadata, array $properties, $addScheme)
    {
        foreach ($this->localizationManager->getLocalizations() as $localization) {
            $rows = $this->session->getWorkspace()->getQueryManager()->createQuery(sprintf('SELECT * FROM [nt:unstructured] WHERE [%s] = "%s" OR [%s] = "%s"', $this->propertyEncoder->localizedSystemName('template', $localization->getLocalization()), $structureMetadata->getName(), 'template', $structureMetadata->getName()), 'JCR-SQL2')->execute();
            foreach ($rows->getNodes() as $node) {
                $this->upgradeNode($node, $localization->getLocalization(), $properties, $addScheme);
            }
        }
    }