9 use Symfony\Component\HttpFoundation\Response;
21 define(
"TITLE_CORE_UPLOADS", _(
"List Uploads as Options"));
27 $this->Name =
"upload_options";
28 $this->Title = TITLE_CORE_UPLOADS;
30 $this->OutputType =
'Text';
32 parent::__construct();
41 if (empty($FolderId)) {
46 foreach ($uploadList as $upload) {
47 $V .=
"<option value='" . $upload[
'upload_pk'] .
"'>";
48 $V .= htmlentities($upload[
'name']);
49 if (! empty($upload[
'upload_desc'])) {
50 $V .=
" (" . htmlentities($upload[
'upload_desc']) .
")";
52 if (! empty($upload[
'upload_ts'])) {
57 return new Response($V, Response::HTTP_OK, array(
'Content-type'=>
'text/plain'));
62 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Contains the constants and helpers for authentication of user.
__construct()
base constructor. Most plugins will just use this
Output()
Display the loaded menu and plugins.
FolderGetTop()
DEPRECATED! Find the top-of-tree folder_pk for the current user.
FolderListUploads_perm($ParentFolder, $perm)
Returns an array of uploads in a folder.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
Convert2BrowserTime($server_time)
Convert the server time to browser time.
#define PERM_WRITE
Read-Write permission.
#define PLUGIN_DB_READ
Plugin requires read permission on DB.