FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Common functions for tag. More...
Go to the source code of this file.
Functions | |
GetAllTags ($Item, $Recurse=true, $uploadtree_tablename="uploadtree") | |
Get all Tags of this uploadtree_pk. More... | |
Array2SingleSelectTag ($KeyValArray, $SLName="unnamed", $SelectedVal="", $FirstEmpty=false, $SelElt=true, $Options="") | |
Build a single choice select pull-down for tagging. More... | |
TagSelect ($SLName="unnamed", $SelectedVal="", $FirstEmpty=false, $SelElt=true) | |
Build a single choice select pulldown for the user to select both a tag. More... | |
TagFilter (&$UploadtreeRows, $tag_pk, $uploadtree_tablename) | |
Given a list of uploadtree recs, remove recs that do not have $tag_pk. More... | |
Common functions for tag.
Definition in file common-tags.php.
Array2SingleSelectTag | ( | $KeyValArray, | |
$SLName = "unnamed" , |
|||
$SelectedVal = "" , |
|||
$FirstEmpty = false , |
|||
$SelElt = true , |
|||
$Options = "" |
|||
) |
Build a single choice select pull-down for tagging.
array | $KeyValArray | Assoc array. Use key/val pairs for list |
string | $SLName | Select list name (default is "unnamed") |
string | $SelectedVal | Initially selected value or key, depends on $SelElt |
bool | $FirstEmpty | True if the list starts off with an empty choice (default is false) |
bool | $SelElt | True (default) if $SelectedVal is a value False if $SelectedVal is a key |
string | $Options | Optional select element options |
Definition at line 85 of file common-tags.php.
GetAllTags | ( | $Item, | |
$Recurse = true , |
|||
$uploadtree_tablename = "uploadtree" |
|||
) |
Get all Tags of this uploadtree_pk.
int | $Item | The uploadtree_pk |
bool | $Recurse | To recurse or not |
string | $uploadtree_tablename |
Definition at line 26 of file common-tags.php.
TagFilter | ( | & | $UploadtreeRows, |
$tag_pk, | |||
$uploadtree_tablename | |||
) |
Given a list of uploadtree recs, remove recs that do not have $tag_pk.
[in,out] | array | &$UploadtreeRows | This array may be modified by this function. |
int | $tag_pk | ||
string | $uploadtree_tablename |
Definition at line 158 of file common-tags.php.
TagSelect | ( | $SLName = "unnamed" , |
|
$SelectedVal = "" , |
|||
$FirstEmpty = false , |
|||
$SelElt = true |
|||
) |
Build a single choice select pulldown for the user to select both a tag.
string | $SL_Name | Select list name (default is "unnamed") |
string | $SL_ID | Select list ID (default is $SL_Name) |
bool | $SelectedVal | Initially selected value or key, depends on $SelElt |
bool | $FirstEmpty | True if the list starts off with an empty choice (default is false) |
Definition at line 119 of file common-tags.php.