Свойство | Тип | Описание | |
---|---|---|---|
$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 | ||
Результат |