Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository ) | ||
createContentItem ( string $contentTypeIdentifier, array $fields ) : eZ\Publish\API\Repository\Values\Content\Content | Uses a content type identifier + a hash of fields values to create and publish a content item below the root location. | |
createDraft ( string $contentTypeIdentifier, array $fields ) : eZ\Publish\API\Repository\Values\Content\Content | Uses a content type identifier + a hash of fields values to create and publish a draft below the root location. | |
createDraftForContent ( eZ\Publish\API\Repository\Values\Content\Content $content ) | ||
getCurrentDraft ( ) | ||
iCreateADraftOfAnExistingContentItem ( ) | ||
iCreateAnFolderDraft ( ) | ||
updateDraft ( $fields ) |
public __construct ( eZ\Publish\API\Repository\Repository $repository ) | ||
$repository | eZ\Publish\API\Repository\Repository |
public createContentItem ( string $contentTypeIdentifier, array $fields ) : eZ\Publish\API\Repository\Values\Content\Content | ||
$contentTypeIdentifier | string | |
$fields | array | Hash of field def identifier => field value |
return | eZ\Publish\API\Repository\Values\Content\Content | the created content item. |
public createDraft ( string $contentTypeIdentifier, array $fields ) : eZ\Publish\API\Repository\Values\Content\Content | ||
$contentTypeIdentifier | string | |
$fields | array | Hash of field def identifier => field value |
return | eZ\Publish\API\Repository\Values\Content\Content | the created draft. |
public createDraftForContent ( eZ\Publish\API\Repository\Values\Content\Content $content ) | ||
$content | eZ\Publish\API\Repository\Values\Content\Content |
public iCreateADraftOfAnExistingContentItem ( ) |