PHP 클래스 Sulu\Component\Content\Export\Webspace

상속: implements Sulu\Component\Content\Export\WebspaceInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$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