eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper Class Reference

Mapper for Location objects. More...

Public Member Functions

 createLocationFromRow (array $data, $prefix= '', Location $location=null)
 Creates a Location from a $data row. More...
 
 createLocationsFromRows (array $rows, $prefix= '')
 Creates Location objects from the given $rows, optionally with key $prefix. More...
 
 getLocationCreateStruct (array $data)
 Creates a Location CreateStruct from a $data row. More...
 

Detailed Description

Mapper for Location objects.

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper::createLocationFromRow ( array  $data,
  $prefix = '',
Location  $location = null 
)

Creates a Location from a $data row.

$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.

Parameters
array$data
string$prefix
Location$location
Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper\createLocationsFromRows().

eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper::createLocationsFromRows ( array  $rows,
  $prefix = '' 
)

Creates Location objects from the given $rows, optionally with key $prefix.

Parameters
array$rows
string$prefix
Returns
[]
eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper::getLocationCreateStruct ( array  $data)

Creates a Location CreateStruct from a $data row.

Parameters
array$data
Returns

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