TrackDataSet
extends AbstractDataset
in package
Table of Contents
- $dataSetEntity : DataSetEntity
- $propertiesCollection : PropertiesCollection
- $tracksCollection : TracksCollection
- __construct() : mixed
- clearMarkedToDelete() : array<string|int, mixed>
- findByFilters() : array<string|int, mixed>
- Filters: properties: description: restrict by any additional properties filters type: array, example: [ 'deviceId' => 358205082102511, 'name' => "Гаранин Владимир Алексеевич" ] bbox: description: restrict by min/max lat/lon, type: array, example: [ 'minLat' => 43.978852, 'maxLat' => 43.978941, 'minLon' => 90.958125, 'maxLon' => 90.960824 ] time: description: restrict by time begin/end in milliseconds, type: array example: [ 'begin' => 1592791788000, 'end' => 1592798780000 ]
- getAuthorField() : string|null
- getCategoryHistory() : bool
- getCountTracks() : int
- getCreateDateField() : string|null
- getEditorField() : string|null
- getId() : ObjectId
- getType() : string
- getUniqueField() : string|null
- getUniqueValues() : array<string|int, mixed>
- save() : void
- getPropertiesIdsFromProperties() : array<string|int, ObjectId>
- getPropertiesIdsFromTracks() : array<string|int, ObjectId>
- getTracksAndProperties() : array<string|int, mixed>
Properties
$dataSetEntity
public
DataSetEntity
$dataSetEntity
Tags
$propertiesCollection
public
PropertiesCollection
$propertiesCollection
$tracksCollection
public
TracksCollection
$tracksCollection
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> —findByFilters()
Filters: properties: description: restrict by any additional properties filters type: array, example: [ 'deviceId' => 358205082102511, 'name' => "Гаранин Владимир Алексеевич" ] bbox: description: restrict by min/max lat/lon, type: array, example: [ 'minLat' => 43.978852, 'maxLat' => 43.978941, 'minLon' => 90.958125, 'maxLon' => 90.960824 ] time: description: restrict by time begin/end in milliseconds, type: array example: [ 'begin' => 1592791788000, 'end' => 1592798780000 ]
public
findByFilters([array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>
Parameters
- $filter : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getAuthorField()
public
getAuthorField() : string|null
Return values
string|null —getCategoryHistory()
public
getCategoryHistory() : bool
Return values
bool —getCountTracks()
public
getCountTracks() : int
Return values
int —getCreateDateField()
public
getCreateDateField() : string|null
Return values
string|null —getEditorField()
public
getEditorField() : string|null
Return values
string|null —getId()
public
getId() : ObjectId
Return values
ObjectId —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> —save()
public
save() : void
Return values
void —getPropertiesIdsFromProperties()
private
getPropertiesIdsFromProperties(array<string|int, mixed> $filter) : array<string|int, ObjectId>
Parameters
- $filter : array<string|int, mixed>
Return values
array<string|int, ObjectId> —getPropertiesIdsFromTracks()
private
getPropertiesIdsFromTracks(array<string|int, mixed>|null $bbox, array<string|int, mixed>|null $time) : array<string|int, ObjectId>
Parameters
- $bbox : array<string|int, mixed>|null
- $time : array<string|int, mixed>|null
Return values
array<string|int, ObjectId> —getTracksAndProperties()
private
getTracksAndProperties(array<string|int, ObjectId> $ids, array<string|int, mixed>|null $time) : array<string|int, mixed>
Parameters
- $ids : array<string|int, ObjectId>
- $time : array<string|int, mixed>|null