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

Created: 2015-12-10 10:04
Наследование: 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.

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

Метод Описание
downgradeDate ( string &$value ) : string Downgrades the given date to the old representation.
findDateBlockProperties ( BlockMetadata $property, string $structureName, array &$properties ) Adds the block property to the list, if it contains a date field.
findDateProperties ( StructureMetadata $structureMetadata, array &$properties ) Returns all properties which are a date field.
iterateStructureNodes ( StructureMetadata $structureMetadata, array $properties, boolean $up ) Iterates over all nodes of the given type, and upgrades them.
iterateStructures ( boolean $up ) Structures are updated according to their xml definition.
upgradeBlockProperty ( BlockMetadata $blockProperty, array $components, PHPCR\NodeInterface $node, string $locale, boolean $up ) Upgrades the given block property to the new date representation.
upgradeDate ( string &$value ) : string Upgrades the given date to the new representation.
upgradeNode ( PHPCR\NodeInterface $node, string $locale, array $properties, boolean $up ) Upgrades the node to new date representation.
upgradeProperty ( PropertyMetadata $property, PHPCR\NodeInterface $node, $locale, boolean $up ) Upgrades the given property to the new date 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