46 $document->filter =
new InclusionFilter(
"document_id",
"title",
"notes",
"keywords",
"file",
"author");
48 $form =
new AutoForm(
$document,
"POST",
"/action/fileshare/edit?document_id=$document_id",
"DocumentDetails_form");
49 $form->readonly(
"file");
50 $form->required(
"title");
51 $form->getRenderer(
"title")->autocomplete =
false;
52 $form->annotate(
"keywords",
"Separate keywords with a comma");
53 $form->ajaxSubmit(
"function(result) {new LibraryManager().editDocumentDetailsResult(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
54 $form->button(
"Cancel",
"new LibraryManager().closeEditDocumentDetails()",
null,
true);
64 $form->readOnlyForm =
true;
79 echo
$form->writeScript();
This class maps the publication table.
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