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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$contentImportManager Sulu\Component\Content\Import\ContentImportManagerInterface
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentManager Sulu\Component\DocumentManager\DocumentManager
$documentRegistry Sulu\Component\DocumentManager\DocumentRegistry
$excludedSettings array
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$formatFilePaths Sulu\Component\Content\Import\WebspaceFormatImportInterface[]
$legacyPropertyFactory Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory
$logger Psr\Log\LoggerInterface
$rlpStrategy Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface

공개 메소드들

메소드 설명
__construct ( Sulu\Component\DocumentManager\DocumentManager $documentManager, DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, LegacyPropertyFactory $legacyPropertyFactory, Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface $rlpStrategy, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Content\Import\ContentImportManagerInterface $contentImportManager, Psr\Log\LoggerInterface $logger, Sulu\Component\Content\Import\WebspaceFormatImportInterface $xliff12 )
add ( $service, $format )
import ( $webspaceKey, $locale, $filePath, $output = null, $format = '1.2.xliff', $uuid = null, $overrideSettings = false, $exportSuluVersion = '1.3' )

보호된 메소드들

메소드 설명
addException ( string $msg = null, string $type = 'info' ) Add a specific import exception/warning to the exception store.
getParser ( $format ) : Sulu\Component\Content\Import\WebspaceFormatImportInterface Returns the correct parser like XLIFF1.2.
getSetterValue ( $key, $value ) : mixed | object Prepare the settings value for the respective setter.
importDocument ( array $parsedData, $format, string $webspaceKey, string $locale, $overrideSettings ) : boolean Import document by locale into given webspace.
importExtension ( Sulu\Component\Content\Extension\ExportExtensionInterface $extension, string $extensionKey, PHPCR\NodeInterface $node, array $data, string $webspaceKey, string $locale, string $format ) Importing the Extensions like SEO- and Excerption-Tab.
importProperty ( Sulu\Component\Content\Compat\PropertyInterface $property, PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\StructureInterface $structure, string $value, string $webspaceKey, string $locale, string $format ) Prepare document-property and import them.
setDocumentData ( BasePageDocument $document, string $structureType, string $webspaceKey, string $locale, string $format, array $data ) Loops all documents and imports all properties of the documents.
setDocumentSettings ( BasePageDocument $document, string $structureType, string $webspaceKey, string $locale, string $format, array $data, $overrideSettings ) Set all Settings for the given documents and import them.

비공개 메소드들

메소드 설명
generateUrl ( Sulu\Component\Content\Compat\PropertyInterface[] $properties, string $parentUuid, string $webspaceKey, string $locale, string $format, array $data ) : string Generates a url by given strategy and property.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\DocumentManager\DocumentManager $documentManager, DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry, LegacyPropertyFactory $legacyPropertyFactory, Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface $rlpStrategy, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Content\Import\ContentImportManagerInterface $contentImportManager, Psr\Log\LoggerInterface $logger, Sulu\Component\Content\Import\WebspaceFormatImportInterface $xliff12 )
$documentManager Sulu\Component\DocumentManager\DocumentManager
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentRegistry Sulu\Component\DocumentManager\DocumentRegistry
$legacyPropertyFactory Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory
$rlpStrategy Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$contentImportManager Sulu\Component\Content\Import\ContentImportManagerInterface
$logger Psr\Log\LoggerInterface
$xliff12 Sulu\Component\Content\Import\WebspaceFormatImportInterface

add() 공개 메소드

public add ( $service, $format )

addException() 보호된 메소드

This messages will print after the import is done.
protected addException ( string $msg = null, string $type = 'info' )
$msg string
$type string

getParser() 보호된 메소드

Returns the correct parser like XLIFF1.2.
protected getParser ( $format ) : Sulu\Component\Content\Import\WebspaceFormatImportInterface
$format
리턴 Sulu\Component\Content\Import\WebspaceFormatImportInterface

getSetterValue() 보호된 메소드

Prepare the settings value for the respective setter.
protected getSetterValue ( $key, $value ) : mixed | object
$key
$value
리턴 mixed | object

import() 공개 메소드

public import ( $webspaceKey, $locale, $filePath, $output = null, $format = '1.2.xliff', $uuid = null, $overrideSettings = false, $exportSuluVersion = '1.3' )

importDocument() 보호된 메소드

Import document by locale into given webspace.
protected importDocument ( array $parsedData, $format, string $webspaceKey, string $locale, $overrideSettings ) : boolean
$parsedData array
$webspaceKey string
$locale string
리턴 boolean

importExtension() 보호된 메소드

Importing the Extensions like SEO- and Excerption-Tab.
protected importExtension ( Sulu\Component\Content\Extension\ExportExtensionInterface $extension, string $extensionKey, PHPCR\NodeInterface $node, array $data, string $webspaceKey, string $locale, string $format )
$extension Sulu\Component\Content\Extension\ExportExtensionInterface
$extensionKey string
$node PHPCR\NodeInterface
$data array
$webspaceKey string
$locale string
$format string

importProperty() 보호된 메소드

Prepare document-property and import them.
protected importProperty ( Sulu\Component\Content\Compat\PropertyInterface $property, PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\StructureInterface $structure, string $value, string $webspaceKey, string $locale, string $format )
$property Sulu\Component\Content\Compat\PropertyInterface
$node PHPCR\NodeInterface
$structure Sulu\Component\Content\Compat\StructureInterface
$value string
$webspaceKey string
$locale string
$format string

setDocumentData() 보호된 메소드

Loops all documents and imports all properties of the documents.
protected setDocumentData ( BasePageDocument $document, string $structureType, string $webspaceKey, string $locale, string $format, array $data )
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
$structureType string
$webspaceKey string
$locale string
$format string
$data array

setDocumentSettings() 보호된 메소드

Import property -o must be set to true.
protected setDocumentSettings ( BasePageDocument $document, string $structureType, string $webspaceKey, string $locale, string $format, array $data, $overrideSettings )
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
$structureType string
$webspaceKey string
$locale string
$format string
$data array

프로퍼티 상세

$contentImportManager 보호되어 있는 프로퍼티

protected ContentImportManagerInterface,Sulu\Component\Content\Import $contentImportManager
리턴 Sulu\Component\Content\Import\ContentImportManagerInterface

$documentInspector 보호되어 있는 프로퍼티

protected DocumentInspector,Sulu\Bundle\DocumentManagerBundle\Bridge $documentInspector
리턴 Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector

$documentManager 보호되어 있는 프로퍼티

protected DocumentManager,Sulu\Component\DocumentManager $documentManager
리턴 Sulu\Component\DocumentManager\DocumentManager

$documentRegistry 보호되어 있는 프로퍼티

protected DocumentRegistry,Sulu\Component\DocumentManager $documentRegistry
리턴 Sulu\Component\DocumentManager\DocumentRegistry

$excludedSettings 보호되어 있는 정적으로 프로퍼티

protected static array $excludedSettings
리턴 array

$extensionManager 보호되어 있는 프로퍼티

protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager
리턴 Sulu\Component\Content\Extension\ExtensionManagerInterface

$formatFilePaths 보호되어 있는 프로퍼티

protected WebspaceFormatImportInterface[],Sulu\Component\Content\Import $formatFilePaths
리턴 Sulu\Component\Content\Import\WebspaceFormatImportInterface[]

$legacyPropertyFactory 보호되어 있는 프로퍼티

protected LegacyPropertyFactory,Sulu\Component\Content\Compat\Structure $legacyPropertyFactory
리턴 Sulu\Component\Content\Compat\Structure\LegacyPropertyFactory

$logger 보호되어 있는 프로퍼티

protected LoggerInterface,Psr\Log $logger
리턴 Psr\Log\LoggerInterface

$rlpStrategy 보호되어 있는 프로퍼티

protected ResourceLocatorStrategyInterface,Sulu\Component\Content\Types\ResourceLocator\Strategy $rlpStrategy
리턴 Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface

$structureManager 보호되어 있는 프로퍼티

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
리턴 Sulu\Component\Content\Compat\StructureManagerInterface