FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct ($page, $tblId, $title=1) | |
fromFile ($nodeString) | |
fromFS ($nodeString) | |
fromURL ($nodeString) | |
getAnchors ($node, $uploadName) | |
parseBrowseMenuFiles () | |
parseBrowseFileMinis () | |
parseBrowseMenuDirs () | |
_createRtnArray ($array, $matches) | |
_createMiniArray ($array, $matches) | |
Public Attributes | |
$page | |
$browseList = array() | |
$noRows = FALSE | |
$emptyTable = FALSE | |
Protected Attributes | |
$anchors = array() | |
Private Attributes | |
$tableId | |
$title | |
$test | |
Given a fossology Broswe page, parse it and return it.
string | $page | the xhtml page to parse |
Created on Aug 19, 2008
revised to use dom methods for the browse page parser in 2010.
Definition at line 23 of file parseBrowseMenu.php.
parseBrowseMenu::_createMiniArray | ( | $array, | |
$matches | |||
) |
function _createMiniArray
combine two arrays into a single associative array. One of the arrays is already associative and had duplicate keys.
array,$array | |
scalar,$matches |
Definition at line 269 of file parseBrowseMenu.php.
parseBrowseMenu::fromFile | ( | $nodeString | ) |
function parseBrowseMenuFiles given a fossology browse page parse the browse listing into the upload name, upload link, view, info and download links.
The caller should check either noRows or browseList properties for results.
[agpl-3.0] => Array ( [View] => /repo/?mod=view&upload=18&show=detail&item=895 [Info] => /repo/?mod=view_info&upload=18&show=detail&item=895 [Download] => /repo/?mod=download&upload=18&show=detail&item=895 )
Note, that when a single file is uploaded (agpl-3.0), there is no link to the upload, only View, Info and Download links.
Sets property noRows if the resulting array is empty and sets $browseList to an empty array if the browse page is blank.
Definition at line 77 of file parseBrowseMenu.php.
parseBrowseMenu::parseBrowseFileMinis | ( | ) |
function parseBrowseFileMinis given a fossology browse page gather up view|meta|download entries, and the links associated with them.
Definition at line 214 of file parseBrowseMenu.php.
parseBrowseMenu::parseBrowseMenuDirs | ( | ) |
function parseBrowseDirs given a fossology browse page gather up directory entries, and the links associated with them.
Definition at line 229 of file parseBrowseMenu.php.