FOSSology  4.4.0
Open Source License Compliance by Open Source Software
domParseLicenseTbl Class Reference
Collaboration diagram for domParseLicenseTbl:
Collaboration graph

Public Member Functions

 __construct ($page, $tblId, $title=1)
 
 parseLicenseTbl ()
 given a fossology license histogram, parse it into license names and Show links. More...
 

Public Attributes

 $page
 
 $hList = array()
 
 $noRows = FALSE
 
 $emptyTable = FALSE
 

Private Attributes

 $tableId
 
 $title
 

Detailed Description

Given a fossology License Broswe page, parse it and return the license table. The rest of the page can be parsed by the browseMenu class.

Parameters
string$pagethe xhtml page to parse
Returns
assocative array with Can return an empty array indicating nothing on the page to browse.
Todo:

add in link fixups and adjust consumers

change the name to parsetable and adjust all consumers

Version
"$Id: dom-parseLicenseTable.php 3273 2010-06-18 18:16:40Z rrando $" Created on Aug 21, 2008

Definition at line 24 of file dom-parseLicenseTable.php.

Member Function Documentation

◆ parseLicenseTbl()

domParseLicenseTbl::parseLicenseTbl ( )

given a fossology license histogram, parse it into license names and Show links.

parseLicenseTbl

Returns
an array of associative arrays with keys of: count, showLink, textOrLink. the values will be the license count the url of the Show link and whatever is in the next column. This can be text or a link or ?

Sets property noRows.

An empty array if no license histogram on that page,

Definition at line 56 of file dom-parseLicenseTable.php.


The documentation for this class was generated from the following file: