YAGS/web/DAL/target.php

30 lines
1.2 KiB
PHP

<?php
namespace DAL;
class target extends \wsos\database\core\row {
public \wsos\database\types\text $name; // noaa19, jonHAM, ... , ...
public \wsos\database\types\reference $type; // sat, groundStation, ...
public \wsos\database\types\text $description;
public \wsos\database\types\enum $orbit;
public \wsos\database\types\json $locator; // TLE, GPS or URL locator if avaible
function __construct($id = null, $name = "", $type = null, $description = "", $orbit = "", $locator = []) {
parent::__construct($id);
$this->name = new \wsos\database\types\text($name);
$this->type = new \wsos\database\types\reference($type, \DAL\targetType::class);
$this->orbit = new \wsos\database\types\enum($orbit, [
"leo",
"meo",
"geo",
"sso",
"gto",
"none",
"other"
], "other");
$this->description = new \wsos\database\types\text($description);
$this->locator = new \wsos\database\types\json($locator);
}
}
?>