add getPhoneBookEntrys
[GitHub/Stricted/speedport-hybrid-php-api.git] / SpeedportHybrid.class.php
index 758385ee53c5be8e757129b58891fc74153c2364..ad3c17168a930b279d3734e06c3774da5691f780 100644 (file)
@@ -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
         *