CMS  Version 3.9
taxonomy_terms_import.inc File Reference

Go to the source code of this file.

Functions

 uploadTerms ($field, $taxonomy)
 

Variables

 $taxonomy_id = checkNumeric($_GET["taxonomy_id"])
 
 $taxonomy = new Taxonomy($taxonomy_id)
 
$taxonomy filter = new InclusionFilter("taxonomy_id")
 
 $form = new AutoForm($taxonomy, "POST", "/action/taxonomy/taxonomy_terms_import?taxonomy_id=$taxonomy_id")
 
$form submitLabel = "Import Taxonomy Terms"
 
 $upload = new FileUploadFieldRenderer($form, "terms", "Taxonomy Terms File", uploadTerms)
 
 if ( $method=="POST")
 

Function Documentation

◆ uploadTerms()

uploadTerms (   $field,
  $taxonomy 
)

Definition at line 69 of file taxonomy_terms_import.inc.

70 {
71  $file = $_FILES[$field]["tmp_name"];
73 }
$file
Definition: delete.inc:47
static importTerms($taxonomy, $file)

Variable Documentation

◆ $form

$form = new AutoForm($taxonomy, "POST", "/action/taxonomy/taxonomy_terms_import?taxonomy_id=$taxonomy_id")

Definition at line 45 of file taxonomy_terms_import.inc.

◆ $taxonomy

$taxonomy = new Taxonomy($taxonomy_id)

Definition at line 42 of file taxonomy_terms_import.inc.

◆ $taxonomy_id

$taxonomy_id = checkNumeric($_GET["taxonomy_id"])

Definition at line 38 of file taxonomy_terms_import.inc.

◆ $upload

$upload = new FileUploadFieldRenderer($form, "terms", "Taxonomy Terms File", uploadTerms)

Definition at line 51 of file taxonomy_terms_import.inc.

◆ filter

$taxonomy filter = new InclusionFilter("taxonomy_id")

Definition at line 44 of file taxonomy_terms_import.inc.

◆ if

if($method=="POST") (   $method = = "POST")

Definition at line 53 of file taxonomy_terms_import.inc.

◆ submitLabel

$form submitLabel = "Import Taxonomy Terms"

Definition at line 49 of file taxonomy_terms_import.inc.