X-Git-Url: https://git.stricted.de/?p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git;a=blobdiff_plain;f=SpeedportHybrid.class.php;h=ad3c17168a930b279d3734e06c3774da5691f780;hp=758385ee53c5be8e757129b58891fc74153c2364;hb=f94e171efe98f27679f36961f352cfe7359190ec;hpb=655c9abd0f1732299feec91cda01ec83032278cf diff --git a/SpeedportHybrid.class.php b/SpeedportHybrid.class.php index 758385e..ad3c171 100644 --- a/SpeedportHybrid.class.php +++ b/SpeedportHybrid.class.php @@ -241,6 +241,23 @@ class SpeedportHybrid { } } + /** + * get phone book entrys + * + * @return array + */ + public function getPhoneBookEntrys () { + $data = $this->getData('PhoneBook'); + $data = $this->getValues($data); + + if (isset($data['addbookentry'])) { + return $data['addbookentry']; + } + else { + return array(); + } + } + /** * get uptime based on online (connection) time *