add NotImplementedException and update version to 1.0.5 1.0.5
authorStricted <info@stricted.de>
Wed, 2 Sep 2015 02:48:31 +0000 (04:48 +0200)
committerStricted <info@stricted.de>
Wed, 2 Sep 2015 02:48:31 +0000 (04:48 +0200)
SpeedportHybrid.class.php
lib/exception/NotImplementedException.class.php [new file with mode: 0644]
lib/trait/Firewall.class.php

index 1ab62070aff1b37840f55773266c02cda9b10d54..95f1f0cc9629d03a8b8a9ddfaa323fdeb1023da2 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 require_once('lib/exception/RebootException.class.php');
 require_once('lib/exception/RouterException.class.php');
+require_once('lib/exception/NotImplementedException.class.php');
 require_once('CryptLib/CryptLib.php');
 require_once('lib/trait/Connection.class.php');
 require_once('lib/trait/CryptLib.class.php');
@@ -28,7 +29,7 @@ class SpeedportHybrid {
         * class version
         * @const       string
         */
-       const VERSION = '1.0.4';
+       const VERSION = '1.0.5';
        
        /**
         * router url
diff --git a/lib/exception/NotImplementedException.class.php b/lib/exception/NotImplementedException.class.php
new file mode 100644 (file)
index 0000000..f2d36c4
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+/**
+ * @author      Jan Altensen (Stricted)
+ * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @copyright   2015 Jan Altensen (Stricted)
+ */
+class NotImplementedException extends Exception {
+}
index 6dae731895221f7fc8b718b68dd10759b980efcd..3fbe070fcab38332d7a7493d59d67cd84dd37482 100644 (file)
@@ -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
        }
 }