Skip to content

Commit

Permalink
add NotImplementedException and update version to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Stricted committed Sep 2, 2015
1 parent c182759 commit 1a5b0fe
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SpeedportHybrid.class.php
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -28,7 +29,7 @@ class SpeedportHybrid {
* class version
* @const string
*/
const VERSION = '1.0.4';
const VERSION = '1.0.5';

/**
* router url
Expand Down
8 changes: 8 additions & 0 deletions lib/exception/NotImplementedException.class.php
Original file line number Diff line number Diff line change
@@ -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 {
}
5 changes: 3 additions & 2 deletions lib/trait/Firewall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down Expand Up @@ -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:
*
Expand Down Expand Up @@ -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
}
}

0 comments on commit 1a5b0fe

Please sign in to comment.