21 define(
"TITLE_ajax_filebucket", _(
"List Uploads as Options"));
27 $this->Name =
"ajax_filebucket";
28 $this->Title = TITLE_ajax_filebucket;
31 parent::__construct();
44 if ($this->
State != PLUGIN_STATE_READY) {
48 return "NO DB connection";
55 $uploadtree_rec =
GetSingleRec(
"uploadtree",
"where uploadtree_pk='$uploadtree_pk'");
59 $children = GetNonArtifactChildren($uploadtree_pk, $uploadtree_tablename);
63 foreach ($children as $child)
67 $outstr .=
",$child[uploadtree_pk]";
76 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Output()
Display the loaded menu and plugins.
__construct()
base constructor. Most plugins will just use this
BucketInTree($bucket_pk, $uploadtree_pk)
Check if a bucket_pk is found in a tree for a given nomos and bucket agent.
GetSingleRec($Table, $Where="")
Retrieve a single database record.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
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".
#define PLUGIN_DB_READ
Plugin requires read permission on DB.
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN