FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
These are common bucket functions. More...
Go to the source code of this file.
Functions | |
SelectBucketDataset ($upload_pk, &$ars_pk, $id="selectbucketdataset", $extra="") | |
Return a select list showing all the successful bucket runs on a particular $upload_pk. More... | |
SelectBucketPool ($selected, $active='Y') | |
Return a select list containing all the active bucketpool's. More... | |
GetFileBuckets ($nomosagent_pk, $bucketagent_pk, $uploadtree_pk, $bucketpool_pk) | |
Get all the unique bucket_pk's for a given uploadtree_pk and for a given nomos and bucket agent. More... | |
GetFileBuckets_string ($nomosagent_pk, $bucketagent_pk, $uploadtree_pk, $bucketDefArray, $delimiter, $color) | |
Get string of $delimiter delimited bucket names for the given inputs. Args are same as GetFileBuckets(). More... | |
BucketInTree ($bucket_pk, $uploadtree_pk) | |
Check if a bucket_pk is found in a tree for a given nomos and bucket agent. More... | |
initBucketDefArray ($bucketpool_pk) | |
Initializes array of bucket_def records. More... | |
BucketInTree | ( | $bucket_pk, | |
$uploadtree_pk | |||
) |
Check if a bucket_pk is found in a tree for a given nomos and bucket agent.
int | $bucket_pk | |
int | $uploadtree_pk |
Definition at line 279 of file common-buckets.php.
GetFileBuckets | ( | $nomosagent_pk, | |
$bucketagent_pk, | |||
$uploadtree_pk, | |||
$bucketpool_pk | |||
) |
Get all the unique bucket_pk's for a given uploadtree_pk and for a given nomos and bucket agent.
int | $nomosagent_pk | Nomos agent id |
int | $bucketagent_pk | Bucket agent id |
int | $uploadtree_pk | File id in upload tree |
int | $bucketpool_pk | Bucket pool id |
Definition at line 162 of file common-buckets.php.
GetFileBuckets_string | ( | $nomosagent_pk, | |
$bucketagent_pk, | |||
$uploadtree_pk, | |||
$bucketDefArray, | |||
$delimiter, | |||
$color | |||
) |
Get string of $delimiter delimited bucket names for the given inputs. Args are same as GetFileBuckets().
int | $nomosagent_pk | |
int | $bucketagent_pk | |
int | $uploadtree_pk | |
array | $bucketDefArray | Array of bucket_def records indexed by bucket_pk see initBucketDefArray(). |
string | $delimiter | Delimiter string to use to separate bucket names. |
boolean | $color | if True, the string is returned as HTML with bucket names color coded. |
Definition at line 226 of file common-buckets.php.
initBucketDefArray | ( | $bucketpool_pk | ) |
Initializes array of bucket_def records.
int | $bucketpool_pk | Bucketpool id |
Definition at line 330 of file common-buckets.php.
SelectBucketDataset | ( | $upload_pk, | |
& | $ars_pk, | ||
$id = "selectbucketdataset" , |
|||
$extra = "" |
|||
) |
Return a select list showing all the successful bucket runs on a particular $upload_pk.
This list can be included in UI's to let the user select which data they wish to view. The most recent results are the default selection.
string | $upload_pk | |
string | &$ars_pk | Return ars_pk of the selected element, may be zero if there are no data. This is also used to pass in the selected ars_pk. |
string | $id | HTML element id |
string | $extra | Extra info for the select element, e.g. "onclick=..." |
Definition at line 34 of file common-buckets.php.
SelectBucketPool | ( | $selected, | |
$active = 'Y' |
|||
) |
Return a select list containing all the active bucketpool's.
string | $selected | Selected bucketpool_pk |
string | $active | 'Y' (default) or 'all' |
Definition at line 121 of file common-buckets.php.