40 die(
"Invalid Parameter");
51 $document->filter =
new InclusionFilter(
"document_id",
"title",
"notes",
"keywords",
"image_id",
"author",
"file",
"url",
"allow_access",
"publication_date",
"publication");
53 $form =
new AutoForm(
$document,
"POST",
"/action/document/edit?document_id=$document_id");
58 $form->readonly(
"file");
59 $form->annotate(
"keywords",
"Separate keywords with a comma");
60 $form->ajaxSubmit(
"function(result) {editResult(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
85 echo
$form->writeScript();
97 if (!$_FILES[
$field] || !$_FILES[
$field][
"name"])
return;
This class maps the publication table.
The DocumentManager class provides the core API and management functions for uploading documents and ...
static getMaxUploadSize()
Returns the maximum allowed file upload size in human-readable format.
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
static usingFile()
Uses the specified framework file(s) from the framework directory.
static addTaxonomyFieldRenderers($form, $showSelectAll=true, $group=null, $limitTo=null)
$method
Pull out a simple reference to the request method.
if(! $document_id) $document
onDeleteDocument(&$document)
replaceLibraryFile($field, $document)