PHP 클래스 eZ\Bundle\EzPublishCoreBundle\Features\Context\BasicContentContext

상속: implements Behat\Behat\Context\Context, use trait EzSystems\PlatformBehatBundle\Context\RepositoryContext
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
getDummyXmlText ( ) : string
getTitleFromPath ( $path )
mapContentPath ( $path ) Maps the path of the content to it's name for later use.

메소드 상세

__construct() 공개 메소드

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

createArticleDraft() 공개 메소드

public createArticleDraft ( $path )

createBasicArticle() 공개 메소드

public createBasicArticle ( $path )

createBasicFolder() 공개 메소드

public createBasicFolder ( $path )

createContent() 공개 메소드

Creates and publishes a Content.
public createContent ( string $contentType, array $fields, mixed $parentLocationId ) : mixed
$contentType string
$fields array
$parentLocationId mixed
리턴 mixed The content's main location id

createContentDraft() 공개 메소드

Creates a content draft.
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
리턴 eZ\Publish\API\Repository\Values\Content\Content an unpublished Content draft

createContentWithPath() 공개 메소드

Non-existing path items are created as folders named after the path element.
public createContentWithPath ( string $path, array $fields, mixed $contentType ) : mixed
$path string The content path
$fields array
$contentType mixed The content type identifier
리턴 mixed location id of the created content

getContentPath() 공개 메소드

Getter for contentPaths.
public getContentPath ( $name )

publishDraft() 공개 메소드

Publishes a content draft.
public publishDraft ( Content $content )
$content Content