AirLay backend

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

Methods

clearMarkedToDelete()

public clearMarkedToDelete() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

deleteFeatures()

public deleteFeatures(array<string|int, ObjectId$ids) : array<string|int, FeatureEntity>
Parameters
$ids : array<string|int, ObjectId>
Return values
array<string|int, FeatureEntity>

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

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>

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

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
todo

issue 1395 add preload parents?

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

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>
Return values
array<string|int, mixed>

Search results