From 2713c1f73a39d4106936d4c52bf8f18d810d7f3c Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 13 Dec 2024 23:53:23 +0000 Subject: add instance information --- Digitigrade/Model/InstanceEndpoints.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Digitigrade/Model/InstanceEndpoints.php (limited to 'Digitigrade/Model/InstanceEndpoints.php') diff --git a/Digitigrade/Model/InstanceEndpoints.php b/Digitigrade/Model/InstanceEndpoints.php new file mode 100644 index 0000000..d2b0b24 --- /dev/null +++ b/Digitigrade/Model/InstanceEndpoints.php @@ -0,0 +1,23 @@ +instanceId = $id; + } + + protected function getUpdateWhereClause($db): ?string { + if (self::findWhere('instance_id = ?', [$this->instanceId]) != null) { + return "instance_id = $this->instanceId"; + } + return null; + } +} \ No newline at end of file -- cgit v1.3