eZPublishCommunityProject  2013.9
eZ\Publish\Core\Helper\FieldHelper Class Reference

Public Member Functions

 __construct (TranslationHelper $translationHelper, ContentTypeService $contentTypeService, FieldTypeService $fieldTypeService)
 
 getFieldDefinition (ContentInfo $contentInfo, $fieldDefIdentifier)
 Returns FieldDefinition object based on $contentInfo and $fieldDefIdentifier. More...
 
 isFieldEmpty (Content $content, $fieldDefIdentifier, $forcedLanguage=null)
 Checks if provided field can be considered empty. More...
 

Private Attributes

 $contentTypeService
 
 $fieldTypeService
 
 $translationHelper
 

Constructor & Destructor Documentation

eZ\Publish\Core\Helper\FieldHelper::__construct ( TranslationHelper  $translationHelper,
ContentTypeService  $contentTypeService,
FieldTypeService  $fieldTypeService 
)

Member Function Documentation

eZ\Publish\Core\Helper\FieldHelper::getFieldDefinition ( ContentInfo  $contentInfo,
  $fieldDefIdentifier 
)

Returns FieldDefinition object based on $contentInfo and $fieldDefIdentifier.

Parameters
ContentInfo$contentInfo
string$fieldDefIdentifier
Returns

Referenced by eZ\Publish\Core\Helper\FieldHelper\isFieldEmpty().

eZ\Publish\Core\Helper\FieldHelper::isFieldEmpty ( Content  $content,
  $fieldDefIdentifier,
  $forcedLanguage = null 
)

Checks if provided field can be considered empty.

Parameters
\eZ\Publish\API\Repository\Values\Content\Content$content
string$fieldDefIdentifier
null$forcedLanguage
Returns
bool

Member Data Documentation

eZ\Publish\Core\Helper\FieldHelper::$contentTypeService
private
eZ\Publish\Core\Helper\FieldHelper::$fieldTypeService
private
eZ\Publish\Core\Helper\FieldHelper::$translationHelper
private

The documentation for this class was generated from the following file: