/**
  * generates an Category as Array for TCA Select fields
  *
  * @param array $params
  * @param object $pObj
  */
 public function itemsProcFunc_categories(&$params, &$pObj)
 {
     $conf = tx_fbmagento_tools::getExtConfig();
     try {
         $soapClient = new tx_fbmagento_soapinterface($conf['url'], $conf['username'], $conf['password']);
         $categories = $soapClient->catalog_category()->tree();
     } catch (Exception $e) {
         tx_fbmagento_tools::displayError('SOAP API Error: ' . $e->getMessage());
     }
     $this->getCategoryItems($params['items'], array($categories));
 }