Ejemplo n.º 1
0
 /**
  * access Denied
  * 
  * @param string $msg
  */
 public function accessDenied($msg = null)
 {
     if ($msg === null) {
         $msg = 'Access denied!';
     }
     tx_fbmagento_tools::displayError($msg, true);
 }
 /**
  * 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));
 }