PHP 클래스 eZ\Publish\Core\Helper\FieldHelper

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( TranslationHelper $translationHelper, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\FieldTypeService $fieldTypeService )
getFieldDefinition ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, string $fieldDefIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition Returns FieldDefinition object based on $contentInfo and $fieldDefIdentifier.
isFieldEmpty ( eZ\Publish\API\Repository\Values\Content\Content $content, string $fieldDefIdentifier, null $forcedLanguage = null ) : boolean Checks if provided field can be considered empty.

메소드 상세

__construct() 공개 메소드

public __construct ( TranslationHelper $translationHelper, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\API\Repository\FieldTypeService $fieldTypeService )
$translationHelper TranslationHelper
$contentTypeService eZ\Publish\API\Repository\ContentTypeService
$fieldTypeService eZ\Publish\API\Repository\FieldTypeService

getFieldDefinition() 공개 메소드

Returns FieldDefinition object based on $contentInfo and $fieldDefIdentifier.
public getFieldDefinition ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, string $fieldDefIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$fieldDefIdentifier string
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

isFieldEmpty() 공개 메소드

Checks if provided field can be considered empty.
public isFieldEmpty ( eZ\Publish\API\Repository\Values\Content\Content $content, string $fieldDefIdentifier, null $forcedLanguage = null ) : boolean
$content eZ\Publish\API\Repository\Values\Content\Content
$fieldDefIdentifier string
$forcedLanguage null
리턴 boolean