PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
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.

Method Details

createLocationFromRow() public method

$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
return eZ\Publish\SPI\Persistence\Content\Location

createLocationsFromRows() public method

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
return eZ\Publish\SPI\Persistence\Content\Location[]

getLocationCreateStruct() public method

Creates a Location CreateStruct from a $data row.
public getLocationCreateStruct ( array $data ) : eZ\Publish\SPI\Persistence\Content\Location\CreateStruct
$data array
return eZ\Publish\SPI\Persistence\Content\Location\CreateStruct