Table of Contents
Interfaces
- NodeRelationRepository
Methods
-
__construct()
: mixed
-
create()
: NodeRelation
-
findAllByEntityTypeAndEntityId()
: NodeRelationCollection
-
findAllByNodeId()
: NodeRelationCollection
-
findRelationsByNodeIdAndRelationType()
: NodeRelationCollection
-
findRelationsByNodeMemberEntityAndRelationType()
: NodeRelationCollection
-
getByNodeIdAndEntityTypeAndEntityId()
: NodeRelation|null
-
getByNodeIdAndEntityTypeAndEntityIdAndWithChildNodes()
: NodeRelation|null
-
remove()
: void
__construct()
public
__construct([EventSenderService|null $eventSenderService = null ][, NodeRepository|null $nodeRepository = null ]) : mixed
Parameters
-
$eventSenderService
: EventSenderService|null
= null
-
-
$nodeRepository
: NodeRepository|null
= null
-
create()
public
create(NodeRelation $nodeRelation) : NodeRelation
Parameters
-
$nodeRelation
: NodeRelation
-
-
throws
-
SystemException
-
throws
-
CreationFailedException
-
throws
-
ArgumentException
findAllByEntityTypeAndEntityId()
public
findAllByEntityTypeAndEntityId(RelationEntityType $entityType, int $entityId) : NodeRelationCollection
Parameters
-
$entityType
: RelationEntityType
-
-
$entityId
: int
-
findAllByNodeId()
public
findAllByNodeId(int $nodeId) : NodeRelationCollection
Parameters
-
$nodeId
: int
-
findRelationsByNodeIdAndRelationType()
public
findRelationsByNodeIdAndRelationType(int $nodeId, RelationEntityType $relationEntityType[, int $limit = 100 ][, int $offset = 0 ]) : NodeRelationCollection
Parameters
-
$nodeId
: int
-
-
$relationEntityType
: RelationEntityType
-
-
$limit
: int
= 100
-
-
$offset
: int
= 0
-
-
throws
-
SqlQueryException
-
throws
-
WrongStructureItemException
findRelationsByNodeMemberEntityAndRelationType()
public
findRelationsByNodeMemberEntityAndRelationType(int $memberEntityId, MemberEntityType $memberEntityType, RelationEntityType $relationEntityType[, int $limit = 100 ][, int $offset = 0 ]) : NodeRelationCollection
Parameters
-
$memberEntityId
: int
-
-
$memberEntityType
: MemberEntityType
-
-
$relationEntityType
: RelationEntityType
-
-
$limit
: int
= 100
-
-
$offset
: int
= 0
-
-
throws
-
SqlQueryException
-
throws
-
WrongStructureItemException
getByNodeIdAndEntityTypeAndEntityId()
public
getByNodeIdAndEntityTypeAndEntityId(int $nodeId, RelationEntityType $entityType, int $entityId) : NodeRelation|null
Parameters
-
$nodeId
: int
-
-
$entityType
: RelationEntityType
-
-
$entityId
: int
-
getByNodeIdAndEntityTypeAndEntityIdAndWithChildNodes()
public
getByNodeIdAndEntityTypeAndEntityIdAndWithChildNodes(int $nodeId, RelationEntityType $entityType, int $entityId, bool $withChildNodes) : NodeRelation|null
Parameters
-
$nodeId
: int
-
-
$entityType
: RelationEntityType
-
-
$entityId
: int
-
-
$withChildNodes
: bool
-
remove()
public
remove(NodeRelation $nodeRelation) : void
Parameters
-
$nodeRelation
: NodeRelation
-