29 function __construct($page)
31 if (empty ($page)) {
return; }
45 $pat =
"|.*id='[0-9]+'.*align='left'.*href='(.*?)'>(.*?)<\/a>|";
46 $matches = preg_match_all($pat, $this->page, $tableEntries, PREG_PATTERN_ORDER);
48 return($this->_createDirList($tableEntries, $matches));
51 function _createDirList($toCombine, $matches)
59 $numTblEntries = count($toCombine[1]);
61 for ($i = 0; $i <= $numTblEntries-1; $i++)
63 $clean = strip_tags($toCombine[2][$i]);
64 $rtnList[$clean] = $toCombine[1][$i];