FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
Install () | |
Create and configure database tables. More... | |
Initialize () | |
This is called before the plugin is used. More... | |
GetTreeInfo ($Uploadtree_pk) | |
Get uploadtree info for a given uploadtree_pk. More... | |
UploadHist ($Uploadtree_pk, $TreeInfo, $BucketDefArray) | |
Given an $Uploadtree_pk, return a string with the histogram for the directory BY bucket. More... | |
ChildElt ($Child, $agent_pk, $OtherChild, $BucketDefArray) | |
Return the entire <td> ... </td> for $Child file listing table differences are highlighted. More... | |
ItemComparisonRows ($Master, $agent_pk1, $agent_pk2, $BucketDefArray) | |
Get a string with the html table rows comparing the two file lists. More... | |
AddBucketStr ($TreeInfo, &$Children, $BucketDefArray) | |
Add bucket_pk array and string to Children array. More... | |
EvalThreshold ($MyArray, $Threshold, $BucketDefArray) | |
Check all the buckets in $MyArray. More... | |
filter_samebucketlist (&$Master) | |
remove files that contain identical bucket lists More... | |
FilterChildren ($filter, &$Master, $BucketDefArray) | |
Filter children. More... | |
HTMLout ($Master, $uploadtree_pk1, $uploadtree_pk2, $in_uploadtree_pk1, $in_uploadtree_pk2, $filter, $TreeInfo1, $TreeInfo2, $BucketDefArray) | |
HTML output. More... | |
Output () | |
This function is called when user output is requested. This function is responsible for content. (OutputOpen and Output are separated so one plugin can call another plugin's Output.) More... | |
htmlContent () | |
Public Member Functions inherited from FO_Plugin | |
Install () | |
This function (when defined) is only called when the plugin is first installed. It should make sure all requirements are available and create anything it needs to run. It returns 0 on success, non-zero on failure. A failed install is not inserted in the system. More... | |
Remove () | |
This function (when defined) is only called once, when the plugin is removed. It should uninstall and remove all items that are only used by this plugin. There should be no residues – if the plugin is ever installed again, it should act like a clean install. Thus, any DB, files, or state variables specific to this plugin must be removed. This function must always succeed. | |
__construct () | |
base constructor. Most plugins will just use this More... | |
Initialize () | |
dummy stub till all references are removed. | |
PostInitialize () | |
This function is called before the plugin is used and after all plugins have been initialized. If there is any initialization step that is dependent on other plugins, put it here. More... | |
RegisterMenus () | |
While menus can be added to any time at or after the PostInitialize phase, this is the standard location for registering this item with menus. More... | |
Destroy () | |
This is a destructor called after the plugin is no longer needed. It should assume that PostInitialize() was already run one time (this session) and succeeded. This function must always succeed. | |
OutputOpen () | |
This function is called when user output is requested. This function is responsible for assigning headers. | |
OutputUnSet () | |
Similar to OutputClose, this ends the output type for this object. However, this does NOT change any global settings. This is called when this object is a dependency for another object. | |
getResponse () | |
Output () | |
This function is called when user output is requested. This function is responsible for content. (OutputOpen and Output are separated so one plugin can call another plugin's Output.) | |
getTemplateName () | |
renderString ($templateName, $vars=null) | |
renderScripts ($scripts) | |
Render JavaScript in the template's footer. More... | |
getRequest () | |
execute () | |
preInstall () | |
postInstall () | |
unInstall () | |
getName () | |
__toString () | |
Public Attributes | |
$ColumnSeparatorStyleL = "style='border:solid 0 #006600; border-left-width:2px;padding-left:1em'" | |
$threshold = 150 | |
Public Attributes inherited from FO_Plugin | |
$State = PLUGIN_STATE_INVALID | |
$Name = "" | |
$Version = "1.0" | |
$Title = "" | |
$DBaccess = PLUGIN_DB_NONE | |
$LoginFlag = 0 | |
$NoMenu = 0 | |
$NoHeader = 0 | |
$PluginLevel = 10 | |
$Dependency = array() | |
$InitOrder = 0 | |
$MenuList = NULL | |
$MenuOrder = 0 | |
$MenuTarget = NULL | |
$OutputType = "HTML" | |
$OutputToStdout = 0 | |
Additional Inherited Members | |
Protected Member Functions inherited from FO_Plugin | |
render ($templateName, $vars=null) | |
Protected Attributes inherited from FO_Plugin | |
$microMenu | |
$renderer | |
$vars = array() | |
UI plugin for buckets diff
Definition at line 27 of file bucket-diff.php.
ui_diff_buckets::AddBucketStr | ( | $TreeInfo, | |
& | $Children, | ||
$BucketDefArray | |||
) |
Add bucket_pk array and string to Children array.
array | $TreeInfo | |
array | $Children | |
array | $BucketDefArray |
Definition at line 369 of file bucket-diff.php.
ui_diff_buckets::ChildElt | ( | $Child, | |
$agent_pk, | |||
$OtherChild, | |||
$BucketDefArray | |||
) |
Return the entire <td> ... </td> for $Child file listing table differences are highlighted.
array | $Child | |
int | $agent_pk | |
array | $OtherChild | |
array | $BucketDefArray |
Definition at line 257 of file bucket-diff.php.
ui_diff_buckets::EvalThreshold | ( | $MyArray, | |
$Threshold, | |||
$BucketDefArray | |||
) |
Check all the buckets in $MyArray.
array | $MyArray | Array of bucket_pk's |
int | $Threshold | |
array | $BucketDefArray |
Definition at line 390 of file bucket-diff.php.
ui_diff_buckets::filter_samebucketlist | ( | & | $Master | ) |
remove files that contain identical bucket lists
array | &$Master |
Definition at line 436 of file bucket-diff.php.
ui_diff_buckets::FilterChildren | ( | $filter, | |
& | $Master, | ||
$BucketDefArray | |||
) |
Filter children.
string | $filter | none, samebucketlist (An empty or unknown filter is the same as "none") |
array | &$Master | |
array | $BucketDefArray |
Definition at line 457 of file bucket-diff.php.
ui_diff_buckets::GetTreeInfo | ( | $Uploadtree_pk | ) |
Get uploadtree info for a given uploadtree_pk.
int | $Uploadtree_pk |
Definition at line 89 of file bucket-diff.php.
ui_diff_buckets::htmlContent | ( | ) |
ui_diff_buckets::HTMLout | ( | $Master, | |
$uploadtree_pk1, | |||
$uploadtree_pk2, | |||
$in_uploadtree_pk1, | |||
$in_uploadtree_pk2, | |||
$filter, | |||
$TreeInfo1, | |||
$TreeInfo2, | |||
$BucketDefArray | |||
) |
HTML output.
array | $Master | |
int | $uploadtree_pk1 | |
int | $uploadtree_pk2 | |
int | $in_uploadtree_pk1 | |
int | $in_uploadtree_pk2 | |
string | $filter | |
array | $TreeInfo1 | |
array | $TreeInfo2 | |
array | $BucketDefArray |
Definition at line 484 of file bucket-diff.php.
ui_diff_buckets::Initialize | ( | ) |
This is called before the plugin is used.
It should assume that Install() was already run one time (possibly years ago and not during this object's creation).
Definition at line 65 of file bucket-diff.php.
ui_diff_buckets::Install | ( | ) |
Create and configure database tables.
Definition at line 46 of file bucket-diff.php.
ui_diff_buckets::ItemComparisonRows | ( | $Master, | |
$agent_pk1, | |||
$agent_pk2, | |||
$BucketDefArray | |||
) |
Get a string with the html table rows comparing the two file lists.
Each row contains 5 table fields. The third field is just for a column separator. If files match their fuzzyname then put on the same row. Highlight license differences. Unmatched fuzzynames go on a row of their own.
array | $Master | |
int | $agent_pk1 | |
int | $agent_pk2 | |
array | $BucketDefArray |
Definition at line 322 of file bucket-diff.php.
ui_diff_buckets::Output | ( | ) |
This function is called when user output is requested. This function is responsible for content. (OutputOpen and Output are separated so one plugin can call another plugin's Output.)
Requires:
filter: optional filter to apply
item1: uploadtree_pk of the column 1 tree
item2: uploadtree_pk of the column 2 tree
freeze: column number (1 or 2) to freeze
Definition at line 645 of file bucket-diff.php.
ui_diff_buckets::UploadHist | ( | $Uploadtree_pk, | |
$TreeInfo, | |||
$BucketDefArray | |||
) |
Given an $Uploadtree_pk, return a string with the histogram for the directory BY bucket.
int | $Uploadtree_pk | |
array | $TreeInfo | |
array | $BucketDefArray |
Definition at line 127 of file bucket-diff.php.
ui_diff_buckets::$threshold = 150 |
cut point for removing by eval order, hardcode for v1
Definition at line 30 of file bucket-diff.php.