22 define(
"TITLE_AJAX_TAGS", _(
"List Tags"));
26 function __construct()
28 $this->Name =
"tag_get";
29 $this->Title = TITLE_AJAX_TAGS;
31 $this->OutputType =
'Text';
33 parent::__construct();
45 $uploadtreeRec =
GetSingleRec(
"uploadtree",
"where uploadtree_pk='$item'");
46 $uploadRec =
GetSingleRec(
"upload",
"where upload_pk='$uploadtreeRec[upload_fk]'");
47 if (empty($uploadRec[
'uploadtree_tablename'])) {
48 $uploadtree_tablename =
"uploadtree";
50 $uploadtree_tablename = $uploadRec[
'uploadtree_tablename'];
53 $List =
GetAllTags($item,
true, $uploadtree_tablename);
54 foreach ($List as $L) {
55 $V .= $L[
'tag_name'] .
",";
58 return new Response($V, Response::HTTP_OK,array(
'content-type'=>
'text/plain'));
63 $NewPlugin->Initialize();
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.
This is the Plugin class. All plugins should: