From: Stricted Date: Wed, 2 Sep 2015 02:48:31 +0000 (+0200) Subject: add NotImplementedException and update version to 1.0.5 X-Git-Tag: 1.0.5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a5b0fe312cbd05e76d61f40852867c3a87c90e1;p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git add NotImplementedException and update version to 1.0.5 --- 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 @@ trait Firewall { $data = $this->getData('Portforwarding'); $data = $this->getValues($data); - //print_r($data); - if (isset($data['addportuw'])) { return $data['addportuw']; } @@ -58,6 +56,8 @@ trait Firewall { * @param integer $device */ public function addPortforwardingEntry ($name, $device) { + throw new NotImplementedException(); + // TODO: find a way to make this possible /* fields: * @@ -104,6 +104,7 @@ trait Firewall { * @param integer $device */ public function editPortforwardingEntry ($id, $name, $device) { + throw new NotImplementedException(); // TODO: find a way to make this possible } }