9 use Symfony\Component\HttpFoundation\Response;
11 define(
"TITLE_UPLOAD_TAGGING", _(
"Manage Upload Tagging"));
15 var $Name =
"upload_tagging";
16 var $Title = TITLE_UPLOAD_TAGGING;
18 var $Dependency = array();
28 if (empty($upload_id)) {
29 return new Response(
'', Response::HTTP_OK,array(
'content-type'=>
'text/plain'));
33 $sql =
"select count(*) from tag_manage where upload_fk = $1 and is_disabled = true";
34 $numTags = $GLOBALS[
'container']->get(
'db.manager')->getSingleRow($sql,array($upload_id));
35 $count = $numTags[
'count'];
38 $V =
"<input type='submit' name='manage' value='$text'>\n";
41 $V =
"<input type='submit' name='manage' value='$text'>\n";
44 return new Response($V, Response::HTTP_OK,array(
'content-type'=>
'text/plain'));
49 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Output()
Display the loaded menu and plugins.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.