32 define(
"TITLE_CORE_UPLOADS", _(
"List Uploads as Options"));
36 function __construct()
38 $this->Name =
"upload_options";
39 $this->Title = TITLE_CORE_UPLOADS;
41 $this->OutputType =
'Text';
43 parent::__construct();
52 if (empty($FolderId)) {
57 foreach ($uploadList as $upload) {
58 $V .=
"<option value='" . $upload[
'upload_pk'] .
"'>";
59 $V .= htmlentities($upload[
'name']);
60 if (! empty($upload[
'upload_desc'])) {
61 $V .=
" (" . htmlentities($upload[
'upload_desc']) .
")";
63 if (! empty($upload[
'upload_ts'])) {
64 $V .=
" :: " . htmlentities($upload[
'upload_ts']);
68 return new Response($V, Response::HTTP_OK, array(
'Content-type'=>
'text/plain'));
73 $NewPlugin->Initialize();
FolderListUploads_perm($ParentFolder, $perm)
Returns an array of uploads in a folder.
FolderGetTop()
DEPRECATED! Find the top-of-tree folder_pk for the current user.
#define PLUGIN_DB_READ
Plugin requires read permission on DB.
Output()
Display the loaded menu and plugins.
GetParm($parameterName, $parameterType)
This function will retrieve the variables and check data types.
This is the Plugin class. All plugins should:
#define PERM_WRITE
Read-Write permission.