eZ/Publish/Core/Persistence/Legacy/Bookmark/Mapper.php 1 location
|
@@ 57-66 (lines=10) @@
|
| 54 |
|
* @param array $row |
| 55 |
|
* @return \eZ\Publish\SPI\Persistence\Bookmark\Bookmark |
| 56 |
|
*/ |
| 57 |
|
private function extractBookmarkFromRow(array $row): Bookmark |
| 58 |
|
{ |
| 59 |
|
$bookmark = new Bookmark(); |
| 60 |
|
$bookmark->id = (int)$row['id']; |
| 61 |
|
$bookmark->name = $row['name']; |
| 62 |
|
$bookmark->userId = (int)$row['user_id']; |
| 63 |
|
$bookmark->locationId = (int)$row['node_id']; |
| 64 |
|
|
| 65 |
|
return $bookmark; |
| 66 |
|
} |
| 67 |
|
} |
| 68 |
|
|
eZ/Publish/Core/Persistence/Legacy/UserPreference/Mapper.php 1 location
|
@@ 39-48 (lines=10) @@
|
| 36 |
|
* |
| 37 |
|
* @return \eZ\Publish\SPI\Persistence\UserPreference\UserPreference |
| 38 |
|
*/ |
| 39 |
|
private function extractUserPreferenceFromRow(array $row): UserPreference |
| 40 |
|
{ |
| 41 |
|
$userPreference = new UserPreference(); |
| 42 |
|
$userPreference->id = (int)$row['id']; |
| 43 |
|
$userPreference->userId = (int)$row['user_id']; |
| 44 |
|
$userPreference->name = $row['name']; |
| 45 |
|
$userPreference->value = $row['value']; |
| 46 |
|
|
| 47 |
|
return $userPreference; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|