49 $clone->filter =
new InclusionFilter(
"taxonomy_id",
"taxonomy_name",
"identifier");
51 $form =
new AutoForm(
$clone,
"POST",
"/action/taxonomy/clone_taxonomy?taxonomy_id=$taxonomy_id",
"CloneTaxonomy_form");
52 $form->required(
"taxonomy_name",
"identifier");
54 $form->ajaxSubmit(
"function(result) {TaxonomyAdmin.cloneTaxonomyResponse(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
55 $form->button(
"Cancel",
"TaxonomyAdmin.closeCloneDialog()",
null,
true);
66 if (!
$clone->taxonomy_name)
68 $clone->taxonomy_name =
"Copy of {$taxonomy->taxonomy_name}";
69 $clone->identifier =
"copy_of_{$taxonomy->identifier}";
FakoliException is the base exception class for all Fakoli errors.
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.
TaxonomyManager provides the internal API for working with taxonomies, facets and bindings.
if($method=="POST") if(! $clone->taxonomy_name) $script
if(! $taxonomy_id) $taxonomy
$method
Pull out a simple reference to the request method.