PHP Класс Sulu\Component\Content\Export\Webspace

Наследование: implements Sulu\Component\Content\Export\WebspaceInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$contentExportManager Sulu\Component\Content\Export\ContentExportManagerInterface
$documentInspector Symfony\Component\Templating\EngineInterface
$documentManager Sulu\Component\DocumentManager\DocumentManager
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$formatFilePaths string[]
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$templating Symfony\Component\Templating\EngineInterface

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

Метод Описание
__construct ( Symfony\Component\Templating\EngineInterface $templating, Sulu\Component\DocumentManager\DocumentManager $documentManager, DocumentInspector $documentInspector, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Content\Export\ContentExportManagerInterface $contentExportManager, array $formatFilePaths )
export ( $webspaceKey, $locale, $output, $format = '1.2.xliff', $uuid = null, $nodes = null, $ignoredNodes = null )
getExportData ( $webspaceKey, $locale, $output = null, $format = '1.2.xliff', $uuid = null, $nodes = null, $ignoredNodes = null )

Защищенные методы

Метод Описание
buildNodeUuidToPathWhere ( $nodes, boolean | false $not = false ) : string Build query to return only specific nodes.
createProperty ( $name, $value = null, array $options = [], string $type = '', array $children = null ) : array Returns a array with the given value (name, value and options).
getBlockPropertyData ( BlockMetadata $property, PropertyValue $propertyValue, $format ) : array Creates and Returns a property-array for content-type Block.
getContentData ( BasePageDocument $document, $locale, $format ) : array Returns a array of the given content data of the document.
getDocuments ( string $webspaceKey, string $locale, string $uuid = null, array $nodes = null, array $ignoredNodes = null ) : array Returns all Documents from given webspace.
getDocumentsQueryString ( $webspaceKey, $locale, string $uuid = null, array $nodes = null, array $ignoredNodes = null ) : string Create the query to get all documents from given webspace and language.
getExtensionData ( BasePageDocument $document, string $format ) : array Returns a flat array with the extensions of the given document.
getPathsByUuids ( $uuids ) : string[] Returns node path from given uuid.
getPropertiesContentData ( PropertyMetadata[] $properties, $propertyValues, $format ) : array Returns the Content as a flat array.
getPropertyData ( PropertyMetadata $property, PropertyValue $propertyValue, string $format ) : array Creates and returns a property-array.
getSettingData ( BasePageDocument $document, string $format ) : array Returns a flat array with the settings of the given document.
getTemplate ( $format ) : string Returns export template for given format like XLIFF1.2.

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

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

public __construct ( Symfony\Component\Templating\EngineInterface $templating, Sulu\Component\DocumentManager\DocumentManager $documentManager, DocumentInspector $documentInspector, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Content\Export\ContentExportManagerInterface $contentExportManager, array $formatFilePaths )
$templating Symfony\Component\Templating\EngineInterface
$documentManager Sulu\Component\DocumentManager\DocumentManager
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$contentExportManager Sulu\Component\Content\Export\ContentExportManagerInterface
$formatFilePaths array

buildNodeUuidToPathWhere() защищенный Метод

Build query to return only specific nodes.
protected buildNodeUuidToPathWhere ( $nodes, boolean | false $not = false ) : string
$nodes
$not boolean | false
Результат string

createProperty() защищенный Метод

Returns a array with the given value (name, value and options).
protected createProperty ( $name, $value = null, array $options = [], string $type = '', array $children = null ) : array
$name
$value
$options array
$type string
$children array
Результат array

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

public export ( $webspaceKey, $locale, $output, $format = '1.2.xliff', $uuid = null, $nodes = null, $ignoredNodes = null )

getBlockPropertyData() защищенный Метод

Creates and Returns a property-array for content-type Block.
protected getBlockPropertyData ( BlockMetadata $property, PropertyValue $propertyValue, $format ) : array
$property Sulu\Component\Content\Metadata\BlockMetadata
$propertyValue Sulu\Component\Content\Document\Structure\PropertyValue
$format
Результат array

getContentData() защищенный Метод

Returns a array of the given content data of the document.
protected getContentData ( BasePageDocument $document, $locale, $format ) : array
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
$locale
$format
Результат array

getDocuments() защищенный Метод

Returns all Documents from given webspace.
protected getDocuments ( string $webspaceKey, string $locale, string $uuid = null, array $nodes = null, array $ignoredNodes = null ) : array
$webspaceKey string
$locale string
$uuid string
$nodes array
$ignoredNodes array
Результат array

getDocumentsQueryString() защищенный Метод

Create the query to get all documents from given webspace and language.
protected getDocumentsQueryString ( $webspaceKey, $locale, string $uuid = null, array $nodes = null, array $ignoredNodes = null ) : string
$webspaceKey
$locale
$uuid string
$nodes array
$ignoredNodes array
Результат string

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

public getExportData ( $webspaceKey, $locale, $output = null, $format = '1.2.xliff', $uuid = null, $nodes = null, $ignoredNodes = null )

getExtensionData() защищенный Метод

Returns a flat array with the extensions of the given document.
protected getExtensionData ( BasePageDocument $document, string $format ) : array
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
$format string
Результат array

getPathsByUuids() защищенный Метод

Returns node path from given uuid.
protected getPathsByUuids ( $uuids ) : string[]
$uuids
Результат string[]

getPropertiesContentData() защищенный Метод

Returns the Content as a flat array.
protected getPropertiesContentData ( PropertyMetadata[] $properties, $propertyValues, $format ) : array
$properties Sulu\Component\Content\Metadata\PropertyMetadata[]
$propertyValues
$format
Результат array

getPropertyData() защищенный Метод

Creates and returns a property-array.
protected getPropertyData ( PropertyMetadata $property, PropertyValue $propertyValue, string $format ) : array
$property Sulu\Component\Content\Metadata\PropertyMetadata
$propertyValue Sulu\Component\Content\Document\Structure\PropertyValue
$format string
Результат array

getSettingData() защищенный Метод

Returns a flat array with the settings of the given document.
protected getSettingData ( BasePageDocument $document, string $format ) : array
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
$format string
Результат array

getTemplate() защищенный Метод

Returns export template for given format like XLIFF1.2.
protected getTemplate ( $format ) : string
$format
Результат string

Описание свойств

$contentExportManager защищенное свойство

protected ContentExportManagerInterface,Sulu\Component\Content\Export $contentExportManager
Результат Sulu\Component\Content\Export\ContentExportManagerInterface

$documentInspector защищенное свойство

protected EngineInterface,Symfony\Component\Templating $documentInspector
Результат Symfony\Component\Templating\EngineInterface

$documentManager защищенное свойство

protected DocumentManager,Sulu\Component\DocumentManager $documentManager
Результат Sulu\Component\DocumentManager\DocumentManager

$extensionManager защищенное свойство

protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager
Результат Sulu\Component\Content\Extension\ExtensionManagerInterface

$formatFilePaths защищенное свойство

protected string[] $formatFilePaths
Результат string[]

$structureManager защищенное свойство

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
Результат Sulu\Component\Content\Compat\StructureManagerInterface

$templating защищенное свойство

protected EngineInterface,Symfony\Component\Templating $templating
Результат Symfony\Component\Templating\EngineInterface