44 $taxonomy->filter =
new InclusionFilter(
"taxonomy_id");
45 $form =
new AutoForm(
$taxonomy,
"POST",
"/action/taxonomy/taxonomy_terms_import?taxonomy_id=$taxonomy_id");
47 $form->ajaxSubmit(
"function(result) {taxonomyAdmin.onSave(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
49 $form->submitLabel =
"Import Taxonomy Terms";
66 echo
$form->writeScript();
static usingFeature()
Uses the specified framework feature(s).
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 assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
static importTerms($taxonomy, $file)
$method
Pull out a simple reference to the request method.
uploadTerms($field, $taxonomy)