|
@@ 1706-1717 (lines=12) @@
|
| 1703 |
|
|
| 1704 |
|
/** @var $relations \eZ\Publish\API\Repository\Values\Content\Relation[] */ |
| 1705 |
|
$relations = array(); |
| 1706 |
|
foreach ($spiRelations as $spiRelation) { |
| 1707 |
|
$destinationContentInfo = $this->internalLoadContentInfo($spiRelation->destinationContentId); |
| 1708 |
|
if (!$this->repository->canUser('content', 'read', $destinationContentInfo)) { |
| 1709 |
|
continue; |
| 1710 |
|
} |
| 1711 |
|
|
| 1712 |
|
$relations[] = $this->domainMapper->buildRelationDomainObject( |
| 1713 |
|
$spiRelation, |
| 1714 |
|
$contentInfo, |
| 1715 |
|
$destinationContentInfo |
| 1716 |
|
); |
| 1717 |
|
} |
| 1718 |
|
|
| 1719 |
|
return $relations; |
| 1720 |
|
} |
|
@@ 1744-1755 (lines=12) @@
|
| 1741 |
|
); |
| 1742 |
|
|
| 1743 |
|
$returnArray = array(); |
| 1744 |
|
foreach ($spiRelations as $spiRelation) { |
| 1745 |
|
$sourceContentInfo = $this->internalLoadContentInfo($spiRelation->sourceContentId); |
| 1746 |
|
if (!$this->repository->canUser('content', 'read', $sourceContentInfo)) { |
| 1747 |
|
continue; |
| 1748 |
|
} |
| 1749 |
|
|
| 1750 |
|
$returnArray[] = $this->domainMapper->buildRelationDomainObject( |
| 1751 |
|
$spiRelation, |
| 1752 |
|
$sourceContentInfo, |
| 1753 |
|
$contentInfo |
| 1754 |
|
); |
| 1755 |
|
} |
| 1756 |
|
|
| 1757 |
|
return $returnArray; |
| 1758 |
|
} |