PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper

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

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

Метод Описание
createLocationFromRow ( array $data, string $prefix = '', eZ\Publish\SPI\Persistence\Content\Location $location = null ) : eZ\Publish\SPI\Persistence\Content\Location Creates a Location from a $data row.
createLocationsFromRows ( array $rows, string $prefix = '' ) : eZ\Publish\SPI\Persistence\Content\Location[] Creates Location objects from the given $rows, optionally with key $prefix.
getLocationCreateStruct ( array $data ) : eZ\Publish\SPI\Persistence\Content\Location\CreateStruct Creates a Location CreateStruct from a $data row.

Описание методов

createLocationFromRow() публичный Метод

$prefix can be used to define a table prefix for the location table. Optionally pass a Location object, which will be filled with the values.
public createLocationFromRow ( array $data, string $prefix = '', eZ\Publish\SPI\Persistence\Content\Location $location = null ) : eZ\Publish\SPI\Persistence\Content\Location
$data array
$prefix string
$location eZ\Publish\SPI\Persistence\Content\Location
Результат eZ\Publish\SPI\Persistence\Content\Location

createLocationsFromRows() публичный Метод

Creates Location objects from the given $rows, optionally with key $prefix.
public createLocationsFromRows ( array $rows, string $prefix = '' ) : eZ\Publish\SPI\Persistence\Content\Location[]
$rows array
$prefix string
Результат eZ\Publish\SPI\Persistence\Content\Location[]

getLocationCreateStruct() публичный Метод

Creates a Location CreateStruct from a $data row.
public getLocationCreateStruct ( array $data ) : eZ\Publish\SPI\Persistence\Content\Location\CreateStruct
$data array
Результат eZ\Publish\SPI\Persistence\Content\Location\CreateStruct