|
@@ 1771-1782 (lines=12) @@
|
| 1768 |
|
|
| 1769 |
|
/** @var $relations \eZ\Publish\API\Repository\Values\Content\Relation[] */ |
| 1770 |
|
$relations = array(); |
| 1771 |
|
foreach ($spiRelations as $spiRelation) { |
| 1772 |
|
$destinationContentInfo = $this->internalLoadContentInfo($spiRelation->destinationContentId); |
| 1773 |
|
if (!$this->repository->canUser('content', 'read', $destinationContentInfo)) { |
| 1774 |
|
continue; |
| 1775 |
|
} |
| 1776 |
|
|
| 1777 |
|
$relations[] = $this->domainMapper->buildRelationDomainObject( |
| 1778 |
|
$spiRelation, |
| 1779 |
|
$contentInfo, |
| 1780 |
|
$destinationContentInfo |
| 1781 |
|
); |
| 1782 |
|
} |
| 1783 |
|
|
| 1784 |
|
return $relations; |
| 1785 |
|
} |
|
@@ 1809-1820 (lines=12) @@
|
| 1806 |
|
); |
| 1807 |
|
|
| 1808 |
|
$returnArray = array(); |
| 1809 |
|
foreach ($spiRelations as $spiRelation) { |
| 1810 |
|
$sourceContentInfo = $this->internalLoadContentInfo($spiRelation->sourceContentId); |
| 1811 |
|
if (!$this->repository->canUser('content', 'read', $sourceContentInfo)) { |
| 1812 |
|
continue; |
| 1813 |
|
} |
| 1814 |
|
|
| 1815 |
|
$returnArray[] = $this->domainMapper->buildRelationDomainObject( |
| 1816 |
|
$spiRelation, |
| 1817 |
|
$sourceContentInfo, |
| 1818 |
|
$contentInfo |
| 1819 |
|
); |
| 1820 |
|
} |
| 1821 |
|
|
| 1822 |
|
return $returnArray; |
| 1823 |
|
} |