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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$contentTypeGroupContext EzSystems\BehatBundle\Context\Object\ContentTypeGroup
$contentTypeService eZ\Publish\API\Repository\ContentTypeService

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService )
assertContentTypeDoesntExistsByIdentifier ( $identifier )
assertContentTypeExistsByIdentifier ( $identifier )
assertContentTypeExistsByIdentifierOnGroup ( $identifier, $groupIdentifier )
createContentType ( string $groupIdentifier, string $identifier, array $fields ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Creates a content type with $identifier on content type group with identifier $groupIdentifier and with the given 'fields' definitions.
ensureContentTypeDoesntExist ( $identifier )
ensureContentTypeWithIndentifier ( $identifier, Behat\Gherkin\Node\TableNode $fields, $groupIdentifier = self::DEFAULT_GROUP )

보호된 메소드들

메소드 설명
assignContentGroupTypeToContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup )
checkContentTypeExistenceByIdentifier ( string $identifier, $groupIdentifier = null ) : boolean Verifies that a content type with $identifier exists.
loadContentTypeByIdentifier ( string $identifier, boolean $throwIfNotFound = true ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | null Load and return a content type by its identifier.
removeContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) Remove the given 'ContentType' object.

메소드 상세

__construct() 공개 메소드

public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\ContentTypeService $contentTypeService )
$repository eZ\Publish\API\Repository\Repository
$contentTypeService eZ\Publish\API\Repository\ContentTypeService

assertContentTypeDoesntExistsByIdentifier() 공개 메소드

assertContentTypeExistsByIdentifier() 공개 메소드

public assertContentTypeExistsByIdentifier ( $identifier )

assertContentTypeExistsByIdentifierOnGroup() 공개 메소드

public assertContentTypeExistsByIdentifierOnGroup ( $identifier, $groupIdentifier )

assignContentGroupTypeToContentType() 보호된 메소드

protected assignContentGroupTypeToContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup )
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType
$contentTypeGroup eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup

checkContentTypeExistenceByIdentifier() 보호된 메소드

Verifies that a content type with $identifier exists.
protected checkContentTypeExistenceByIdentifier ( string $identifier, $groupIdentifier = null ) : boolean
$identifier string
리턴 boolean

createContentType() 공개 메소드

Creates a content type with $identifier on content type group with identifier $groupIdentifier and with the given 'fields' definitions.
public createContentType ( string $groupIdentifier, string $identifier, array $fields ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
$groupIdentifier string content type group identifier
$identifier string content type identifier
$fields array content type fields definitions
리턴 eZ\Publish\API\Repository\Values\ContentType\ContentType

ensureContentTypeDoesntExist() 공개 메소드

public ensureContentTypeDoesntExist ( $identifier )

ensureContentTypeWithIndentifier() 공개 메소드

public ensureContentTypeWithIndentifier ( $identifier, Behat\Gherkin\Node\TableNode $fields, $groupIdentifier = self::DEFAULT_GROUP )
$fields Behat\Gherkin\Node\TableNode

loadContentTypeByIdentifier() 보호된 메소드

Load and return a content type by its identifier.
protected loadContentTypeByIdentifier ( string $identifier, boolean $throwIfNotFound = true ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | null
$identifier string content type identifier
$throwIfNotFound boolean if true, throws an exception if it is not found.
리턴 eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | null

removeContentType() 보호된 메소드

Remove the given 'ContentType' object.
protected removeContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType )
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType

프로퍼티 상세

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

protected ContentTypeGroup,EzSystems\BehatBundle\Context\Object $contentTypeGroupContext
리턴 EzSystems\BehatBundle\Context\Object\ContentTypeGroup

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

protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
리턴 eZ\Publish\API\Repository\ContentTypeService