PHP Класс Sulu\Bundle\ContentBundle\Version201511240844

Наследование: implements PHPCR\Migrations\VersionInterface, implements Symfony\Component\DependencyInjection\ContainerAwareInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
down ( PHPCR\SessionInterface $session ) Migrate the system down.
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
up ( PHPCR\SessionInterface $session ) Migrate the repository up.

Приватные методы

Метод Описание
downgradeUrl ( string &$value ) : string Downgrades the given URl to the old representation.
findUrlBlockProperties ( BlockMetadata $property, string $structureName, array &$properties ) Adds the block property to the list, if it contains a URL field.
findUrlProperties ( StructureMetadata $structureMetadata, array &$properties ) Returns all properties which are a URL field.
iterateStructureNodes ( StructureMetadata $structureMetadata, array $properties, boolean $addScheme ) Iterates over all nodes of the given type, and upgrades them.
iterateStructures ( boolean $addScheme ) Structures are updated according to their xml definition.
upgradeBlockProperty ( BlockMetadata $blockProperty, array $components, PropertyValue $propertyValue, boolean $addScheme ) Upgrades the given block property to the new URL representation.
upgradeExternalLinks ( boolean $addScheme ) External links are easily updated by fetching all nodes with the external redirect type, and add or remove the scheme to the external property.
upgradeNode ( PHPCR\NodeInterface $node, string $locale, array $properties, boolean $addScheme ) Upgrades the node to new URL representation.
upgradeProperty ( PropertyValue $property, boolean $addScheme ) Upgrades the given property to the new URL representation.
upgradeUrl ( string &$value ) : string Upgrades the given URL to the new representation.

Описание методов

down() публичный Метод

Migrate the system down.
public down ( PHPCR\SessionInterface $session )
$session PHPCR\SessionInterface

setContainer() публичный Метод

public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface

up() публичный Метод

Migrate the repository up.
public up ( PHPCR\SessionInterface $session )
$session PHPCR\SessionInterface