Merge branch 'master' of github.com:Stricted/speedport-hybrid-php-api
[GitHub/Stricted/speedport-hybrid-php-api.git] / lib / trait / Network.class.php
CommitLineData
e559c2bb
S
1<?php
2/**
3 * @author Jan Altensen (Stricted)
4 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
dd76f288 5 * @copyright 2015-2016 Jan Altensen (Stricted)
e559c2bb
S
6 */
7trait Network {
8 /**
9 * get all devices in network
10 *
11 * @return array
12 */
13 public function lanDeviceOverview () {
14 $data = $this->getData('LAN');
15 $data = $this->getValues($data);
16
17 if (isset($data['addmdevice'])) {
18 return $data['addmdevice'];
19 }
20 else {
21 return array();
22 }
23 }
24}