RelatedDataSet
extends SimpleDataSet
in package
Table of Contents
- $categoryHistoriesCollection : CategoryHistoriesCollection
- $dataSetEntity : DataSetEntity
- $directHierarchyCollection : HierarchiesCollection
- $featuresCollection : FeaturesCollection
- $historiesCollection : HistoriesCollection
- $nodesCollection : NodesCollection
- $relationsCollection : RelationsCollection
- $waysCollection : WaysCollection
- $scriptService : DataSetScriptService
- __construct() : mixed
- clearMarkedToDelete() : array<string|int, mixed>
- createNode() : NodeEntity
- createRelation() : RelationEntity
- createWay() : WayEntity
- deleteFeatures() : array<string|int, FeatureEntity>
- deleteMembers() : void
- deleteRelation() : void
- deleteRelationByUniqueField() : RelationEntity|null
- findErrors() : array<string|int, mixed>
- findParentsRelationsWithChildren() : array<string|int, mixed>
- findRoutes() : array<string|int, string>
- findZeroErrors() : array<string|int, mixed>
- getAreaField() : string|null
- getAuthorField() : string|null
- getCategoryHistory() : bool
- getChildrenFeatures() : array<string|int, mixed>
- getCreateDateField() : string|null
- getDefaultCategory() : ObjectId|null
- getEditorField() : string|null
- getId() : ObjectId
- getIsIncrementUniqueValue() : bool
- getLengthField() : string|null
- getMeasure() : string|null
- getObjectTreeRecursive() : array<string|int, mixed>
- getType() : string
- getUniqueField() : string|null
- getUniqueValues() : array<string|int, mixed>
- getUpdateDateField() : string|null
- insertOne() : bool
- isFindPolygonIntersections() : bool
- preload() : void
- Load data from db in memory
- replaceOneFeature() : bool
- save() : void
- setCategory() : string
- updateDirectHierarchy() : void
- updateObjectsCategory() : void
- updateRelation() : void
- isExists() : bool
- updateObjectCategoryInCollection() : void
- validateUniqueValue() : void
- validateUniqueValueForFeature() : void
- buildPath() : array<string|int, string>
- getUniqueFieldFromImportFeatures() : array<string|int, mixed>
Properties
$categoryHistoriesCollection
public
CategoryHistoriesCollection
$categoryHistoriesCollection
$dataSetEntity
public
DataSetEntity
$dataSetEntity
Tags
$directHierarchyCollection
public
HierarchiesCollection
$directHierarchyCollection
$featuresCollection
public
FeaturesCollection
$featuresCollection
$historiesCollection
public
HistoriesCollection
$historiesCollection
$nodesCollection
public
NodesCollection
$nodesCollection
$relationsCollection
public
RelationsCollection
$relationsCollection
$waysCollection
public
WaysCollection
$waysCollection
$scriptService
private
DataSetScriptService
$scriptService
Methods
__construct()
public
__construct(DataSetEntity $dataSetEntity) : mixed
Parameters
- $dataSetEntity : DataSetEntity
Return values
mixed —clearMarkedToDelete()
public
clearMarkedToDelete() : array<string|int, mixed>
Return values
array<string|int, mixed> —createNode()
public
createNode(Point $point, ObjectId $relationId) : NodeEntity
Parameters
- $point : Point
- $relationId : ObjectId
Return values
NodeEntity —createRelation()
public
createRelation([array<string|int, mixed> $properties = [] ][, array<string|int, mixed> $author = [] ]) : RelationEntity
Parameters
- $properties : array<string|int, mixed> = []
- $author : array<string|int, mixed> = []
Return values
RelationEntity —createWay()
public
createWay(NodeEntity $nodeFirst, NodeEntity $nodeSecond, ObjectId $relationId) : WayEntity
Parameters
- $nodeFirst : NodeEntity
- $nodeSecond : NodeEntity
- $relationId : ObjectId
Return values
WayEntity —deleteFeatures()
public
deleteFeatures(array<string|int, ObjectId> $ids) : array<string|int, FeatureEntity>
Parameters
- $ids : array<string|int, ObjectId>
Return values
array<string|int, FeatureEntity> —deleteMembers()
public
deleteMembers(RelationEntity $relation) : void
Parameters
- $relation : RelationEntity
Return values
void —deleteRelation()
public
deleteRelation(RelationEntity $relation) : void
Parameters
- $relation : RelationEntity
Return values
void —deleteRelationByUniqueField()
public
deleteRelationByUniqueField(string $uniqueValue) : RelationEntity|null
Parameters
- $uniqueValue : string
Return values
RelationEntity|null —findErrors()
public
findErrors(int $limit[, array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>
Parameters
- $limit : int
- $filter : array<string|int, mixed> = []
Return values
array<string|int, mixed> —findParentsRelationsWithChildren()
public
findParentsRelationsWithChildren(ObjectId $id) : array<string|int, mixed>
Parameters
- $id : ObjectId
Return values
array<string|int, mixed> —findRoutes()
public
findRoutes(ObjectId $startNode, ObjectId $endNode) : array<string|int, string>
Parameters
- $startNode : ObjectId
- $endNode : ObjectId
Return values
array<string|int, string> —findZeroErrors()
public
findZeroErrors(int $limit) : array<string|int, mixed>
Parameters
- $limit : int
Return values
array<string|int, mixed> —getAreaField()
public
getAreaField() : string|null
Return values
string|null —getAuthorField()
public
getAuthorField() : string|null
Return values
string|null —getCategoryHistory()
public
getCategoryHistory() : bool
Return values
bool —getChildrenFeatures()
public
getChildrenFeatures(ObjectId $relationId[, bool $recursive = false ][, string $type = 'feature' ]) : array<string|int, mixed>
Parameters
- $relationId : ObjectId
- $recursive : bool = false
- $type : string = 'feature'
Return values
array<string|int, mixed> —getCreateDateField()
public
getCreateDateField() : string|null
Return values
string|null —getDefaultCategory()
public
getDefaultCategory() : ObjectId|null
Return values
ObjectId|null —getEditorField()
public
getEditorField() : string|null
Return values
string|null —getId()
public
getId() : ObjectId
Return values
ObjectId —getIsIncrementUniqueValue()
public
getIsIncrementUniqueValue() : bool
Return values
bool —getLengthField()
public
getLengthField() : string|null
Return values
string|null —getMeasure()
public
getMeasure() : string|null
Return values
string|null —getObjectTreeRecursive()
public
getObjectTreeRecursive(ObjectId $objectId) : array<string|int, mixed>
Parameters
- $objectId : ObjectId
Return values
array<string|int, mixed> —getType()
public
getType() : string
Return values
string —getUniqueField()
public
getUniqueField() : string|null
Return values
string|null —getUniqueValues()
public
getUniqueValues(string $field, string $value, int $limit[, array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>
Parameters
- $field : string
- $value : string
- $limit : int
- $filter : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getUpdateDateField()
public
getUpdateDateField() : string|null
Return values
string|null —insertOne()
public
insertOne(FeatureEntity $feature) : bool
Parameters
- $feature : FeatureEntity
Return values
bool —isFindPolygonIntersections()
public
isFindPolygonIntersections() : bool
Return values
bool —preload()
Load data from db in memory
public
preload(array<string|int, mixed> $importFeatures) : void
Parameters
- $importFeatures : array<string|int, mixed>
Tags
Return values
void —replaceOneFeature()
public
replaceOneFeature(FeatureEntity $feature) : bool
Parameters
- $feature : FeatureEntity
Return values
bool —save()
public
save() : void
Return values
void —setCategory()
public
setCategory(ObjectId $objectId, ObjectId $categoryId, UserEntity $user) : string
Parameters
- $objectId : ObjectId
- $categoryId : ObjectId
- $user : UserEntity
Return values
string —updateDirectHierarchy()
public
updateDirectHierarchy(ObjectId $id, array<string|int, mixed> $members) : void
Parameters
- $id : ObjectId
- $members : array<string|int, mixed>
Return values
void —updateObjectsCategory()
public
updateObjectsCategory(ObjectId $objectId, Category $category) : void
Parameters
- $objectId : ObjectId
- $category : Category
Return values
void —updateRelation()
public
updateRelation(RelationEntity $relation[, string|null $geometryType = null ][, array<string|int, mixed>|null $options = null ][, array<string|int, mixed>|null $properties = null ][, array<string|int, mixed>|null $members = null ][, array<string|int, mixed> $author = [] ]) : void
Parameters
- $relation : RelationEntity
- $geometryType : string|null = null
- $options : array<string|int, mixed>|null = null
- $properties : array<string|int, mixed>|null = null
- $members : array<string|int, mixed>|null = null
- $author : array<string|int, mixed> = []
Return values
void —isExists()
protected
isExists(ObjectId $id) : bool
Parameters
- $id : ObjectId
Return values
bool —updateObjectCategoryInCollection()
protected
updateObjectCategoryInCollection(FeaturesCollection|RelationsCollection $collection, mixed $objectId, mixed $category) : void
Parameters
- $collection : FeaturesCollection|RelationsCollection
- $objectId : mixed
- $category : mixed
Return values
void —validateUniqueValue()
protected
validateUniqueValue(RelationEntity|FeatureEntity $object, RelationsCollection|FeaturesCollection $collection) : void
Parameters
- $object : RelationEntity|FeatureEntity
- $collection : RelationsCollection|FeaturesCollection
Return values
void —validateUniqueValueForFeature()
protected
validateUniqueValueForFeature(FeatureEntity $feature) : void
Parameters
- $feature : FeatureEntity
Return values
void —buildPath()
private
buildPath(string $currentNode, array<string|int, mixed> $parents) : array<string|int, string>
Parameters
- $currentNode : string
- $parents : array<string|int, mixed>
Return values
array<string|int, string> —getUniqueFieldFromImportFeatures()
private
getUniqueFieldFromImportFeatures(array<string|int, mixed> $features) : array<string|int, mixed>
Parameters
- $features : array<string|int, mixed>