diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-12-14 07:47:54 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2010-12-14 07:47:54 +0100 |
| commit | 3affd264002c60d087a4f8be3ae82e3e4ba0889f (patch) | |
| tree | ffe4ff4be5e5936828d20414c4c07bcac4b83e4b /Wrt3g/HtmlParser.php | |
| parent | 04a4787d84e645cb7bc0a01b43a692d3aaa14d9c (diff) | |
| download | linksys-wrt3g-tools-3affd264002c60d087a4f8be3ae82e3e4ba0889f.tar.gz linksys-wrt3g-tools-3affd264002c60d087a4f8be3ae82e3e4ba0889f.zip | |
test skeleton for status_noauth
Diffstat (limited to 'Wrt3g/HtmlParser.php')
| -rw-r--r-- | Wrt3g/HtmlParser.php | 62 |
1 files changed, 38 insertions, 24 deletions
diff --git a/Wrt3g/HtmlParser.php b/Wrt3g/HtmlParser.php index 1cd5373..fe81c58 100644 --- a/Wrt3g/HtmlParser.php +++ b/Wrt3g/HtmlParser.php @@ -1,15 +1,15 @@ <?php /** -* HTML parsing for the linksys router HTML pages -* -* PHP version 5 -* -* @category Tools -* @package linksys-wrt3g-tools -* @author Christian Weiske <cweiske@cweiske.de> -* @license AGPL v3 -* @link http://cweiske.de/linksys-wrt3g-tools.htm -*/ + * HTML parsing for the linksys router HTML pages + * + * PHP version 5 + * + * @category Tools + * @package linksys-wrt3g-tools + * @author Christian Weiske <cweiske@cweiske.de> + * @license AGPL v3 + * @link http://cweiske.de/linksys-wrt3g-tools.htm + */ class Wrt3g_HtmlParser { protected static $arTranslations = array( @@ -26,13 +26,13 @@ class Wrt3g_HtmlParser /** - * Parses the body of /index_wstatus1.asp and returns extracted values. - * - * @param string $body HTML document to parse - * - * @return array Array of key-value pairs, probably with "type", "network" and - * "signal strength" - */ + * Parses the body of /index_wstatus1.asp and returns extracted values. + * + * @param string $body HTML document to parse + * + * @return array Array of key-value pairs, probably with "type", "network" and + * "signal strength" + */ public function index_wstatus1($body) { $doc = new DomDocument(); @@ -84,13 +84,13 @@ class Wrt3g_HtmlParser /** - * Parses the body of /index_wstatus2.asp and returns extracted values. - * - * @param string $body HTML document to parse - * - * @return array Array with "connection" as key and one of "connecting", - * "connected" or "disconnected" as value. - */ + * Parses the body of /index_wstatus2.asp and returns extracted values. + * + * @param string $body HTML document to parse + * + * @return array Array with "connection" as key and one of "connecting", + * "connected" or "disconnected" as value. + */ public function index_wstatus2($body) { preg_match('/var status2 = "(.+)"/', $body, $arMatches); @@ -101,4 +101,18 @@ class Wrt3g_HtmlParser //Connected return array('connection' => strtolower($strStatus)); } + + + + /** + * Parses the HTML body of /Status_NoAuth.asp and returns the extracted + * values. + * + * @param string $body HTML document to parse + * + * @return array FIXME + */ + public function status_noauth($body) + { + } }
\ No newline at end of file |
