PHP Класс eZ\Publish\Core\Helper\FieldHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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