프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$converterRegistry | FieldValue converter registry. | ||
$languageHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler | Caching language handler. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Creates a new mapper. | |
convertToStorageValue ( eZ\Publish\SPI\Persistence\Content\Field $field ) : |
Converts value of $field to storage value. | |
createCreateStructFromContent ( eZ\Publish\SPI\Persistence\Content $content ) : eZ\Publish\SPI\Persistence\Content\CreateStruct | Creates CreateStruct from $content. | |
createRelationFromCreateStruct ( eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Relation | Creates a Content from the given $struct. | |
createVersionInfoForContent ( eZ\Publish\SPI\Persistence\Content $content, mixed $versionNo, mixed $userId ) : eZ\Publish\SPI\Persistence\Content\VersionInfo | Creates a new version for the given $content. | |
createVersionInfoFromCreateStruct ( eZ\Publish\SPI\Persistence\Content\CreateStruct $struct, mixed $versionNo ) : eZ\Publish\SPI\Persistence\Content\VersionInfo | Creates a new version for the given $struct and $versionNo. | |
extractContentFromRows ( array $rows, array $nameRows ) : eZ\Publish\SPI\Persistence\Content[] | Extracts Content objects (and nested) from database result $rows. | |
extractContentInfoFromRow ( array $row, string $prefix = '', string $treePrefix = 'ezcontentobject_tree_' ) : eZ\Publish\SPI\Persistence\Content\ContentInfo | Extracts a ContentInfo object from $row. | |
extractContentInfoFromRows ( array $rows, string $prefix = '', string $treePrefix = 'ezcontentobject_tree_' ) : eZ\Publish\SPI\Persistence\Content\ContentInfo[] | Extracts ContentInfo objects from $rows. | |
extractLanguageIdsFromMask ( integer $languageMask ) : array | ||
extractRelationsFromRows ( array $rows ) | Extracts relation objects from $rows. | |
extractVersionInfoListFromRows ( array $rows, array $nameRows ) : eZ\Publish\SPI\Persistence\Content\VersionInfo[] | Extracts a VersionInfo object from $row. |
메소드 | 설명 | |
---|---|---|
extractFieldFromRow ( array $row ) : eZ\Publish\SPI\Persistence\Content\Field | Extracts a Field from $row. | |
extractFieldValueFromRow ( array $row, string $type ) : eZ\Publish\SPI\Persistence\Content\FieldValue | Extracts a FieldValue of $type from $row. | |
extractRelationFromRow ( array $row ) : eZ\Publish\SPI\Persistence\Content\Relation | Extracts a Relation object from a $row. |
메소드 | 설명 | |
---|---|---|
createContentInfoFromCreateStruct ( eZ\Publish\SPI\Persistence\Content\CreateStruct $struct, mixed $currentVersionNo = 1 ) : eZ\Publish\SPI\Persistence\Content\ContentInfo | Creates a Content from the given $struct and $currentVersionNo. | |
extractVersionInfoFromRow ( array $row, array $names = [] ) : eZ\Publish\SPI\Persistence\Content\VersionInfo | Extracts a VersionInfo object from $row. |
public __construct ( |
||
$converterRegistry | ||
$languageHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler |
public convertToStorageValue ( eZ\Publish\SPI\Persistence\Content\Field $field ) : |
||
$field | eZ\Publish\SPI\Persistence\Content\Field | |
리턴 |
public createCreateStructFromContent ( eZ\Publish\SPI\Persistence\Content $content ) : eZ\Publish\SPI\Persistence\Content\CreateStruct | ||
$content | eZ\Publish\SPI\Persistence\Content | |
리턴 | eZ\Publish\SPI\Persistence\Content\CreateStruct |
public createRelationFromCreateStruct ( eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Relation | ||
$struct | eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct | |
리턴 | eZ\Publish\SPI\Persistence\Content\Relation |
public createVersionInfoForContent ( eZ\Publish\SPI\Persistence\Content $content, mixed $versionNo, mixed $userId ) : eZ\Publish\SPI\Persistence\Content\VersionInfo | ||
$content | eZ\Publish\SPI\Persistence\Content | |
$versionNo | mixed | |
$userId | mixed | |
리턴 | eZ\Publish\SPI\Persistence\Content\VersionInfo |
public createVersionInfoFromCreateStruct ( eZ\Publish\SPI\Persistence\Content\CreateStruct $struct, mixed $versionNo ) : eZ\Publish\SPI\Persistence\Content\VersionInfo | ||
$struct | eZ\Publish\SPI\Persistence\Content\CreateStruct | |
$versionNo | mixed | |
리턴 | eZ\Publish\SPI\Persistence\Content\VersionInfo |
public extractContentFromRows ( array $rows, array $nameRows ) : eZ\Publish\SPI\Persistence\Content[] | ||
$rows | array | |
$nameRows | array | |
리턴 | eZ\Publish\SPI\Persistence\Content[] |
public extractContentInfoFromRow ( array $row, string $prefix = '', string $treePrefix = 'ezcontentobject_tree_' ) : eZ\Publish\SPI\Persistence\Content\ContentInfo | ||
$row | array | |
$prefix | string | Prefix for row keys, which are initially mapped by ezcontentobject fields |
$treePrefix | string | Prefix for tree row key, which are initially mapped by ezcontentobject_tree_ fields |
리턴 | eZ\Publish\SPI\Persistence\Content\ContentInfo |
public extractContentInfoFromRows ( array $rows, string $prefix = '', string $treePrefix = 'ezcontentobject_tree_' ) : eZ\Publish\SPI\Persistence\Content\ContentInfo[] | ||
$rows | array | |
$prefix | string | Prefix for row keys, which are initially mapped by ezcontentobject fields |
$treePrefix | string | Prefix for tree row key, which are initially mapped by ezcontentobject_tree_ fields |
리턴 | eZ\Publish\SPI\Persistence\Content\ContentInfo[] |
protected extractFieldFromRow ( array $row ) : eZ\Publish\SPI\Persistence\Content\Field | ||
$row | array | |
리턴 | eZ\Publish\SPI\Persistence\Content\Field |
protected extractFieldValueFromRow ( array $row, string $type ) : eZ\Publish\SPI\Persistence\Content\FieldValue | ||
$row | array | |
$type | string | |
리턴 | eZ\Publish\SPI\Persistence\Content\FieldValue |
public extractLanguageIdsFromMask ( integer $languageMask ) : array | ||
$languageMask | integer | |
리턴 | array |
protected extractRelationFromRow ( array $row ) : eZ\Publish\SPI\Persistence\Content\Relation | ||
$row | array | Associative array representing a relation |
리턴 | eZ\Publish\SPI\Persistence\Content\Relation |
public extractRelationsFromRows ( array $rows ) | ||
$rows | array |
public extractVersionInfoListFromRows ( array $rows, array $nameRows ) : eZ\Publish\SPI\Persistence\Content\VersionInfo[] | ||
$rows | array | |
$nameRows | array | |
리턴 | eZ\Publish\SPI\Persistence\Content\VersionInfo[] |
protected ConverterRegistry,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $converterRegistry | ||
리턴 |