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