40 function __construct($page)
42 if (empty ($page)) {
return; }
56 $pat =
"|.*id='[0-9]+'.*align='left'.*href='(.*?)'>(.*?)<\/a>|";
57 $matches = preg_match_all($pat, $this->page, $tableEntries, PREG_PATTERN_ORDER);
59 return($this->_createDirList($tableEntries, $matches));
62 function _createDirList($toCombine, $matches)
70 $numTblEntries = count($toCombine[1]);
72 for ($i = 0; $i <= $numTblEntries-1; $i++)
74 $clean = strip_tags($toCombine[2][$i]);
75 $rtnList[$clean] = $toCombine[1][$i];