diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index 2caf5fe005fb90bb32ce0b0b5b301f867bbd021f..6cc2f80ef0ec27615cb561ac497d8d9e860b7d69 100644 --- a/mappers/taxonomy.inc +++ b/mappers/taxonomy.inc @@ -6,18 +6,6 @@ * Mapper that exposes a node's taxonomy vocabularies as mapping targets. */ -/** - * Encapsulates a taxonomy style term object. - */ -class FeedsTermElement extends FeedsElement { - public $tid, $vid; - public function __construct($term) { - parent::__construct($term->name); - $this->tid = $term->tid; - $this->vid = $term->vid; - } -} - /** * Implementation of hook_feeds_parser_sources_alter(). */ diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc index 2c2dc511dc20e3e7c7df89f5cec042c30b7bfecf..a32c1a49f05272e1a8166d3e83538a8ae33c20c8 100644 --- a/plugins/FeedsParser.inc +++ b/plugins/FeedsParser.inc @@ -133,6 +133,23 @@ class FeedsElement { } } +/** + * Encapsulates a taxonomy style term object. + */ +class FeedsTermElement extends FeedsElement { + public $tid, $vid; + + /** + * @param $term + * A stdClass object that is a Drupal taxonomy term. + */ + public function __construct($term) { + parent::__construct($term->name); + $this->tid = $term->tid; + $this->vid = $term->vid; + } +} + /** * Enclosure element, can be part of the result array. */