public function loadImages()
 {
     $this->truncateTable('aa_ibrams_media');
     $this->truncateTable('aa_ibrams_media_metadata');
     $ibramssoap = new Ibrams_Soap();
     $searchlist = array(array('searchfield' => 'schnittstellenfreigabe', 'value' => 'PR-Plattform'));
     $medialist = $ibramssoap->searchMedia($searchlist);
     if ($medialist && isset($medialist->item)) {
         $res = $this->parseMedialist($medialist);
     }
 }
 public function getProductImage($item_id)
 {
     $item = $this->load($item_id);
     $jpg = str_replace($this->_mimearr, '.jpg', $item->filename);
     if (!file_exists(Mage::getBaseDir('media') . DS . 'import/' . $jpg)) {
         $ibramssoap = new Ibrams_Soap();
         try {
             $ibramssoap->downloadmedia(array($item->id), array($item->id => $jpg), Mage::getBaseDir('media') . DS . 'import/');
         } catch (Exception $e) {
             Mage::log('dlmedia error: ' . $e->getMessage());
             //                 return $e;
         }
     }
 }