|
@@ 1673-1684 (lines=12) @@
|
| 1670 |
|
|
| 1671 |
|
/** @var $relations \eZ\Publish\API\Repository\Values\Content\Relation[] */ |
| 1672 |
|
$relations = array(); |
| 1673 |
|
foreach ($spiRelations as $spiRelation) { |
| 1674 |
|
$destinationContentInfo = $this->internalLoadContentInfo($spiRelation->destinationContentId); |
| 1675 |
|
if (!$this->repository->canUser('content', 'read', $destinationContentInfo)) { |
| 1676 |
|
continue; |
| 1677 |
|
} |
| 1678 |
|
|
| 1679 |
|
$relations[] = $this->domainMapper->buildRelationDomainObject( |
| 1680 |
|
$spiRelation, |
| 1681 |
|
$contentInfo, |
| 1682 |
|
$destinationContentInfo |
| 1683 |
|
); |
| 1684 |
|
} |
| 1685 |
|
|
| 1686 |
|
return $relations; |
| 1687 |
|
} |
|
@@ 1711-1722 (lines=12) @@
|
| 1708 |
|
); |
| 1709 |
|
|
| 1710 |
|
$returnArray = array(); |
| 1711 |
|
foreach ($spiRelations as $spiRelation) { |
| 1712 |
|
$sourceContentInfo = $this->internalLoadContentInfo($spiRelation->sourceContentId); |
| 1713 |
|
if (!$this->repository->canUser('content', 'read', $sourceContentInfo)) { |
| 1714 |
|
continue; |
| 1715 |
|
} |
| 1716 |
|
|
| 1717 |
|
$returnArray[] = $this->domainMapper->buildRelationDomainObject( |
| 1718 |
|
$spiRelation, |
| 1719 |
|
$sourceContentInfo, |
| 1720 |
|
$contentInfo |
| 1721 |
|
); |
| 1722 |
|
} |
| 1723 |
|
|
| 1724 |
|
return $returnArray; |
| 1725 |
|
} |