Faserplanung Vorbereitung für Kabelverschaltung
* Menüpunkt Kabelverschaltung hinzugefügt * Initialfiles für Kabelverschaltung
This commit is contained in:
@@ -7,7 +7,7 @@ class FiberPlanPipeEndpointModel
|
||||
private $fiberPlanDispatcher_id;
|
||||
private $building_id;
|
||||
private $sort;
|
||||
|
||||
|
||||
|
||||
public static function find($data)
|
||||
{
|
||||
@@ -95,6 +95,33 @@ class FiberPlanPipeEndpointModel
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function searchNetworks($filter)
|
||||
{
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
$where = self::getSqlFilter($filter);
|
||||
$res = $db->select("FiberPlanPipeEndpoint", "*", "$where ORDER by sort LIMIT 1");
|
||||
if ($db->num_rows($res)) {
|
||||
while ($data = $db->fetch_object($res)) {
|
||||
$FiberplanPipeEndpoint = new FiberPlanPipeEndpoint($data);
|
||||
if ($data->pop_id) {
|
||||
|
||||
$sql = "SELECT network_id FROM PopNetwork WHERE pop_id='" . $data->pop_id . "' LIMIT 1";
|
||||
$result = $db->query($sql);
|
||||
$fetch = $db->fetch_object($result);
|
||||
$item = (string) $fetch->network_id;
|
||||
}
|
||||
if ($data->fiberPlanDispatcher_id) {
|
||||
$item = (string) $FiberplanPipeEndpoint->fiberPlanDispatcher->network_id;
|
||||
}
|
||||
if ($data->building_id) {
|
||||
$item = (string) $FiberplanPipeEndpoint->building->network_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $item;
|
||||
}
|
||||
|
||||
public static function search($filter)
|
||||
{
|
||||
$items = [];
|
||||
|
||||
Reference in New Issue
Block a user