From 1a5b0fe312cbd05e76d61f40852867c3a87c90e1 Mon Sep 17 00:00:00 2001 From: Stricted Date: Wed, 2 Sep 2015 04:48:31 +0200 Subject: [PATCH] add NotImplementedException and update version to 1.0.5 --- SpeedportHybrid.class.php | 3 ++- lib/exception/NotImplementedException.class.php | 8 ++++++++ lib/trait/Firewall.class.php | 5 +++-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 lib/exception/NotImplementedException.class.php diff --git a/SpeedportHybrid.class.php b/SpeedportHybrid.class.php index 1ab6207..95f1f0c 100644 --- a/SpeedportHybrid.class.php +++ b/SpeedportHybrid.class.php @@ -1,6 +1,7 @@ + * @copyright 2015 Jan Altensen (Stricted) + */ +class NotImplementedException extends Exception { +} diff --git a/lib/trait/Firewall.class.php b/lib/trait/Firewall.class.php index 6dae731..3fbe070 100644 --- a/lib/trait/Firewall.class.php +++ b/lib/trait/Firewall.class.php @@ -14,8 +14,6 @@ public function getPortforwardingEntrys () { $data = $this->getData('Portforwarding'); $data = $this->getValues($data); - //print_r($data); - if (isset($data['addportuw'])) { return $data['addportuw']; } @@ -58,6 +56,8 @@ public function deletePortforwardingEntry ($id) { * @param integer $device */ public function addPortforwardingEntry ($name, $device) { + throw new NotImplementedException(); + // TODO: find a way to make this possible /* fields: * @@ -104,6 +104,7 @@ public function addPortforwardingEntry ($name, $device) { * @param integer $device */ public function editPortforwardingEntry ($id, $name, $device) { + throw new NotImplementedException(); // TODO: find a way to make this possible } }