Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter Class Reference
Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter:

## Public Member Functions
| __construct (DatabaseHandler $db)
| Create instance of RelationList converter. More...
| toStorageValue (FieldValue $value, StorageFieldValue $storageFieldValue)
| Converts data from $value to $storageFieldValue. More...
| toFieldValue (StorageFieldValue $value, FieldValue $fieldValue)
| Converts data from $value to $fieldValue. More...
| toStorageFieldDefinition (FieldDefinition $fieldDef, StorageFieldDefinition $storageDef)
| Converts field definition data in $fieldDef into $storageFieldDef. More...
| toFieldDefinition (StorageFieldDefinition $storageDef, FieldDefinition $fieldDef)
| Converts field definition data in $storageDef into $fieldDef. More...
| getIndexColumn ()
| Returns the name of the index column in the attribute table. More...

## Protected Member Functions
| getRelationXmlHashFromDB (array $destinationContentIds)

## Static Private Member Functions
static | dbAttributeMap ()

## Private Attributes
| $db

## Detailed Description

Definition at line 19 of file RelationListConverter.php.

## Constructor & Destructor Documentation

## ◆ __construct()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::__construct | ( | DatabaseHandler | $db | ) |

Create instance of RelationList converter.

Parameters

  \eZ\Publish\Core\Persistence\Database\DatabaseHandler | $db |

Definition at line 29 of file RelationListConverter.php.

References eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter\$db.

## Member Function Documentation

## ◆ dbAttributeMap()

static eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::dbAttributeMap | ( |  | ) |
| static private

Returns
  array

Definition at line 339 of file RelationListConverter.php.

## ◆ getIndexColumn()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::getIndexColumn | ( |  | ) |

Returns the name of the index column in the attribute table.

Returns the name of the index column the datatype uses, which is either "sort_key_int" or "sort_key_string". This column is then used for filtering and sorting for this type.

Returns
  string

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

Definition at line 268 of file RelationListConverter.php.

## ◆ getRelationXmlHashFromDB()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::getRelationXmlHashFromDB | ( | array | $destinationContentIds | ) |
| protected

Parameters

  mixed[] | $destinationContentIds |

Exceptions

Definition at line 280 of file RelationListConverter.php.

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter\toStorageValue().

## ◆ toFieldDefinition()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::toFieldDefinition | ( | StorageFieldDefinition | $storageDef,
|  | FieldDefinition | $fieldDef
| ) |  |

Converts field definition data in $storageDef into $fieldDef.

`<?xml version="1.0" encoding="utf-8"?> <related-objects> <constraints> <allowed-class contentclass-identifier="blog_post"/> </constraints> <type value="2"> <selection_type value="1"> <selection_limit value="5"> <object_class value=""> <contentobject-placement node-id="67"/> </related-objects>`

`<?xml version="1.0" encoding="utf-8"?> <related-objects> <constraints> <type value="2"> <selection_type value="0"> <object_class value=""> <contentobject-placement/> </related-objects>`

Parameters

  \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition | $storageDef |
  \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition | $fieldDef |

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

Definition at line 197 of file RelationListConverter.php.

## ◆ toFieldValue()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::toFieldValue | ( | StorageFieldValue | $value,
|  | FieldValue | $fieldValue
| ) |  |

Converts data from $value to $fieldValue.

Parameters

  \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue | $value |
  \eZ\Publish\SPI\Persistence\Content\FieldValue | $fieldValue |

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

Definition at line 85 of file RelationListConverter.php.

## ◆ toStorageFieldDefinition()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::toStorageFieldDefinition | ( | FieldDefinition | $fieldDef,
|  | StorageFieldDefinition | $storageDef
| ) |  |

Converts field definition data in $fieldDef into $storageFieldDef.

Parameters

  \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition | $fieldDef |
  \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition | $storageDef |

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

Definition at line 115 of file RelationListConverter.php.

## ◆ toStorageValue()

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::toStorageValue | ( | FieldValue | $value,
|  | StorageFieldValue | $storageFieldValue
| ) |  |

Converts data from $value to $storageFieldValue.

Parameters

  \eZ\Publish\SPI\Persistence\Content\FieldValue | $value |
  \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue | $storageFieldValue |

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

Definition at line 40 of file RelationListConverter.php.

References eZ\Publish\SPI\Persistence\Content\FieldValue\$data, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter\getRelationXmlHashFromDB().

## Member Data Documentation

## ◆ $db

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter::$db
| private

Definition at line 22 of file RelationListConverter.php.

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationListConverter\__construct().

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

- RelationListConverter.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.