32 define(
"TITLE_ajax_filebucket", _(
"List Uploads as Options"));
36 function __construct()
38 $this->Name =
"ajax_filebucket";
39 $this->Title = TITLE_ajax_filebucket;
42 parent::__construct();
55 if ($this->
State != PLUGIN_STATE_READY) {
59 return "NO DB connection";
66 $uploadtree_rec =
GetSingleRec(
"uploadtree",
"where uploadtree_pk='$uploadtree_pk'");
70 $children = GetNonArtifactChildren($uploadtree_pk, $uploadtree_tablename);
74 foreach ($children as $child)
78 $outstr .=
",$child[uploadtree_pk]";
87 $NewPlugin->Initialize();
FUNCTION char * GetUploadtreeTableName(PGconn *pgConn, int upload_pk)
Get the uploadtree table name for this upload_pk If upload_pk does not exist, return "uploadtree"...
Output()
Display the loaded menu and plugins.
GetSingleRec($Table, $Where="")
Retrieve a single database record.
#define PLUGIN_DB_READ
Plugin requires read permission on DB.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
BucketInTree($bucket_pk, $uploadtree_pk)
Check if a bucket_pk is found in a tree for a given nomos and bucket agent.
This is the Plugin class. All plugins should:
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN