Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\ContentService $contentService ) | ||
createArticleDraft ( $path ) | ||
createBasicArticle ( $path ) | ||
createBasicFolder ( $path ) | ||
createContent ( string $contentType, array $fields, mixed $parentLocationId ) : mixed | Creates and publishes a Content. | |
createContentDraft ( eZ\Publish\API\Repository\Values\Content\Location $parentLocationId, string $contentTypeIdentifier, array $fields, string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Content | Creates a content draft. | |
createContentWithPath ( string $path, array $fields, mixed $contentType ) : mixed | Creates and publishes a content at a given path. | |
getContentPath ( $name ) | Getter for contentPaths. | |
publishDraft ( Content $content ) | Publishes a content draft. |
Method | Description | |
---|---|---|
getDummyXmlText ( ) : string | ||
getTitleFromPath ( $path ) | ||
mapContentPath ( $path ) | Maps the path of the content to it's name for later use. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\ContentService $contentService ) | ||
$repository | eZ\Publish\API\Repository\Repository | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | |
$contentService | eZ\Publish\API\Repository\ContentService |
public createContentDraft ( eZ\Publish\API\Repository\Values\Content\Location $parentLocationId, string $contentTypeIdentifier, array $fields, string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Content | ||
$parentLocationId | eZ\Publish\API\Repository\Values\Content\Location | |
$contentTypeIdentifier | string | |
$fields | array | Fields, as primitives understood by setField |
$languageCode | string | |
return | eZ\Publish\API\Repository\Values\Content\Content | an unpublished Content draft |
public publishDraft ( Content $content ) | ||
$content | Content |