SimpleDataSet
extends AbstractDataset
in package
implements
UniqueFieldInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $categoryHistoriesCollection : CategoryHistoriesCollection
- $dataSetEntity : DataSetEntity
- $featuresCollection : FeaturesCollection
- $historiesCollection : HistoriesCollection
- $scriptService : DataSetScriptService
- __construct() : mixed
- clearMarkedToDelete() : array<string|int, mixed>
- deleteFeatures() : array<string|int, FeatureEntity>
- getAreaField() : string|null
- getAuthorField() : string|null
- getCategoryHistory() : bool
- getCreateDateField() : string|null
- getDefaultCategory() : ObjectId|null
- getEditorField() : string|null
- getId() : ObjectId
- getIsIncrementUniqueValue() : bool
- getLengthField() : string|null
- getMeasure() : string|null
- 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
- updateObjectsCategory() : void
- isExists() : bool
- updateObjectCategoryInCollection() : void
- validateUniqueValue() : void
- validateUniqueValueForFeature() : void
Properties
$categoryHistoriesCollection
public
CategoryHistoriesCollection
$categoryHistoriesCollection
$dataSetEntity
public
DataSetEntity
$dataSetEntity
Tags
$featuresCollection
public
FeaturesCollection
$featuresCollection
$historiesCollection
public
HistoriesCollection
$historiesCollection
$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> —deleteFeatures()
public
deleteFeatures(array<string|int, ObjectId> $ids) : array<string|int, FeatureEntity>
Parameters
- $ids : array<string|int, ObjectId>
Return values
array<string|int, FeatureEntity> —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 —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 —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>
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 —updateObjectsCategory()
public
updateObjectsCategory(ObjectId $objectId, Category $category) : void
Parameters
- $objectId : ObjectId
- $category : Category
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