프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contentImportManager | Sulu\Component\Content\Import\ContentImportManagerInterface | ||
$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 | |||
$logger | Psr\Log\LoggerInterface | ||
$rlpStrategy | Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface | ||
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface |
메소드 | 설명 | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\DocumentManager $documentManager, |
||
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 ( |
Loops all documents and imports all properties of the documents. | |
setDocumentSettings ( |
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. |
public __construct ( Sulu\Component\DocumentManager\DocumentManager $documentManager, |
||
$documentManager | Sulu\Component\DocumentManager\DocumentManager | |
$documentInspector | ||
$documentRegistry | Sulu\Component\DocumentManager\DocumentRegistry | |
$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 |
protected addException ( string $msg = null, string $type = 'info' ) | ||
$msg | string | |
$type | string |
protected getParser ( $format ) : Sulu\Component\Content\Import\WebspaceFormatImportInterface | ||
$format | ||
리턴 | Sulu\Component\Content\Import\WebspaceFormatImportInterface |
protected getSetterValue ( $key, $value ) : mixed | object | ||
$key | ||
$value | ||
리턴 | mixed | object |
public import ( $webspaceKey, $locale, $filePath, $output = null, $format = '1.2.xliff', $uuid = null, $overrideSettings = false, $exportSuluVersion = '1.3' ) |
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 |
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 |
protected setDocumentSettings ( |
||
$document | ||
$structureType | string | |
$webspaceKey | string | |
$locale | string | |
$format | string | |
$data | array |
protected ContentImportManagerInterface,Sulu\Component\Content\Import $contentImportManager | ||
리턴 | Sulu\Component\Content\Import\ContentImportManagerInterface |
protected DocumentInspector,Sulu\Bundle\DocumentManagerBundle\Bridge $documentInspector | ||
리턴 |
protected DocumentManager,Sulu\Component\DocumentManager $documentManager | ||
리턴 | Sulu\Component\DocumentManager\DocumentManager |
protected DocumentRegistry,Sulu\Component\DocumentManager $documentRegistry | ||
리턴 | Sulu\Component\DocumentManager\DocumentRegistry |
protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager | ||
리턴 | Sulu\Component\Content\Extension\ExtensionManagerInterface |
protected WebspaceFormatImportInterface[],Sulu\Component\Content\Import $formatFilePaths | ||
리턴 | Sulu\Component\Content\Import\WebspaceFormatImportInterface[] |
protected LegacyPropertyFactory,Sulu\Component\Content\Compat\Structure $legacyPropertyFactory | ||
리턴 |
protected ResourceLocatorStrategyInterface,Sulu\Component\Content\Types\ResourceLocator\Strategy $rlpStrategy | ||
리턴 | Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyInterface |