/**
  * Exporter of Assets
  * 
  * @access public
  * @since 10/17/05
  */
 function exportAssets()
 {
     $hasRootSearch = FALSE;
     $rootSearchType = new HarmoniType("Repository", "edu.middlebury.harmoni", "RootAssets", "");
     $searchTypes = $this->_object->getSearchTypes();
     while ($searchTypes->hasNext()) {
         if ($rootSearchType->isEqual($searchTypes->next())) {
             $hasRootSearch = TRUE;
             break;
         }
     }
     if ($hasRootSearch) {
         $criteria = NULL;
         $children = $this->_object->getAssetsBySearch($criteria, $rootSearchType, new HarmoniProperties(new Type('Repository', 'edu.middlebury', 'null')));
     } else {
         $children = $this->_object->getAssets();
     }
     $this->_status = new StatusStars(str_replace('%1', $this->_object->getDisplayName(), _("Exporting all Assets in the Collection, '%1'")));
     $this->_status->initializeStatistics($children->count(), 100);
     while ($children->hasNext()) {
         $child = $children->next();
         $exporter = XMLAssetExporter::withDir($this->_xml, $this->_repDir);
         $exporter->export($child);
         $this->_status->updateStatistics();
     }
     unset($exporter);
 }
 /**
  * Exporter of child Assets
  * 
  * @access public
  * @since 10/17/05
  */
 function exportAssets()
 {
     $children = $this->_object->getAssets();
     while ($children->hasNext()) {
         $child = $children->next();
         $exporter = XMLAssetExporter::withDir($this->_xml, $this->_fileDir);
         $exporter->export($child);
         unset($exporter);
     }
 }