![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
This file contains common functions for the copyright ui plugin. More...
Go to the source code of this file.
Functions | |
| hist_rowcmp_count_asc ($a, $b) | |
| Sort query histogram results (by content), ascend. More... | |
| hist_rowcmp_count_desc ($a, $b) | |
| Sort query histogram results (by content), descend. More... | |
| hist_rowcmp ($rowa, $rowb) | |
| Sort query histogram results (by content), ascend. More... | |
| hist_rowcmp_desc ($rowa, $rowb) | |
| Sort query histogram results (by content), descend. More... | |
| copyright_namecmp ($rowa, $rowb) | |
| Sort rows by filename. More... | |
| GetFilesWithCopyright ($agent_pk, $hash, $type, $uploadtree_pk, $PkgsOnly=false, $offset=0, $limit="ALL", $order="") | |
| get files with a given copyright. More... | |
| CountFilesWithCopyright ($agent_pk, $hash, $type, $uploadtree_pk, $PkgsOnly=false, $CheckOnly=false) | |
| StmtReorder ($content) | |
| rearrange copyright statment to try and put the holder first, followed by the rest of the statement. More... | |
| MassageContent (&$row, $hash) | |
| Input row array contains: pfile, content and type. More... | |
This file contains common functions for the copyright ui plugin.
Definition in file library.php.
| copyright_namecmp | ( | $rowa, | |
| $rowb | |||
| ) |
Sort rows by filename.
| array[][] | $rowa |
| array[][] | $rowb |
Definition at line 78 of file library.php.
| CountFilesWithCopyright | ( | $agent_pk, | |
| $hash, | |||
| $type, | |||
| $uploadtree_pk, | |||
$PkgsOnly = false, |
|||
$CheckOnly = false |
|||
| ) |
Count files (pfiles) with a given copyright string.
| int | $agent_pk | - agentpk |
| string | $hash | - content hash |
| string | $type | - content type (statement, url, email) |
| int | $uploadtree_pk | - sets scope of request |
| boolean | $PkgsOnly | - if true, only list packages, default is false (all files are listed) |
| boolean | $CheckOnly | - if true, sets LIMIT 1 to check if uploadtree_pk has any of the given copyrights. Default is false. |
Definition at line 145 of file library.php.
| GetFilesWithCopyright | ( | $agent_pk, | |
| $hash, | |||
| $type, | |||
| $uploadtree_pk, | |||
$PkgsOnly = false, |
|||
$offset = 0, |
|||
$limit = "ALL", |
|||
$order = "" |
|||
| ) |
get files with a given copyright.
| int | $agent_pk | - agentpk |
| string | $hash | - content hash |
| string | $type | - content type (statement, url, email) |
| int | $uploadtree_pk | - sets scope of request |
| boolean | $PkgsOnly | - if true, only list packages, default is false (all files are listed) |
| int | $offset | - select offset, default is 0 |
| string | $limit | - select limit (num rows returned), default is no limit |
| string | $order | - sql order by clause, default is blank e.g. "order by ufile_name asc" |
Definition at line 99 of file library.php.
| hist_rowcmp | ( | $rowa, | |
| $rowb | |||
| ) |
Sort query histogram results (by content), ascend.
| array[][] | $rowa |
| array[][] | $rowb |
Definition at line 56 of file library.php.
| hist_rowcmp_count_asc | ( | $a, | |
| $b | |||
| ) |
Sort query histogram results (by content), ascend.
| array[][] | $a |
| array[][] | $b |
Definition at line 32 of file library.php.
| hist_rowcmp_count_desc | ( | $a, | |
| $b | |||
| ) |
Sort query histogram results (by content), descend.
| array[][] | $a |
| array[][] | $b |
Definition at line 44 of file library.php.
| hist_rowcmp_desc | ( | $rowa, | |
| $rowb | |||
| ) |
Sort query histogram results (by content), descend.
| array[][] | $rowa |
| array[][] | $rowb |
Definition at line 67 of file library.php.
| MassageContent | ( | & | $row, |
| $hash | |||
| ) |
Input row array contains: pfile, content and type.
Output records: massaged content, type, hash
where content has been simplified from the raw records and hash is the md5 of this new content.
If $hash non zero, only rows with that hash will be returned.
| array | $row | |
| string | $hash |
Definition at line 210 of file library.php.
| StmtReorder | ( | $content | ) |
rearrange copyright statment to try and put the holder first, followed by the rest of the statement.
Definition at line 191 of file library.php.