Overview

Namespaces

  • Html2Text
  • Izberg
    • Exception
    • Resource
      • Category

Classes

  • Html2Text\Html2Text
  • Izberg\Helper
  • Izberg\Izberg
  • Izberg\Resource
  • Izberg\Resource\Address
  • Izberg\Resource\Application
  • Izberg\Resource\ApplicationCategory
  • Izberg\Resource\Attributes
  • Izberg\Resource\BillingAddress
  • Izberg\Resource\Brand
  • Izberg\Resource\Carrier
  • Izberg\Resource\Cart
  • Izberg\Resource\CartItem
  • Izberg\Resource\CartShippingChoice
  • Izberg\Resource\Category
  • Izberg\Resource\Category\CategoryAbstract
  • Izberg\Resource\Country
  • Izberg\Resource\CoverImage
  • Izberg\Resource\Currency
  • Izberg\Resource\Discount
  • Izberg\Resource\ExtraInfo
  • Izberg\Resource\Feed
  • Izberg\Resource\LocaleConfig
  • Izberg\Resource\Merchant
  • Izberg\Resource\MerchantAddress
  • Izberg\Resource\MerchantImage
  • Izberg\Resource\MerchantOrder
  • Izberg\Resource\MerchantReview
  • Izberg\Resource\Message
  • Izberg\Resource\Meta
  • Izberg\Resource\Offer
  • Izberg\Resource\OfferImage
  • Izberg\Resource\Order
  • Izberg\Resource\OrderItem
  • Izberg\Resource\Payment
  • Izberg\Resource\PaymentCardAlias
  • Izberg\Resource\Product
  • Izberg\Resource\ProductAttribute
  • Izberg\Resource\ProductBrand
  • Izberg\Resource\ProductChannel
  • Izberg\Resource\ProductChannelFileOutput
  • Izberg\Resource\Productoffer
  • Izberg\Resource\ProductOfferVariation
  • Izberg\Resource\ProductVariation
  • Izberg\Resource\ProfileImage
  • Izberg\Resource\Receiver
  • Izberg\Resource\ReturnRequest
  • Izberg\Resource\Review
  • Izberg\Resource\Sender
  • Izberg\Resource\ShippingAddress
  • Izberg\Resource\ShippingMerchantTemplate
  • Izberg\Resource\ShippingProvider
  • Izberg\Resource\ShippingProviderAssignment
  • Izberg\Resource\ShoppingPreference
  • Izberg\Resource\User
  • Izberg\Resource\Webhook

Exceptions

  • Izberg\Exception\BadRequestException
  • Izberg\Exception\ForbiddenException
  • Izberg\Exception\GenericException
  • Izberg\Exception\HttpException
  • Izberg\Exception\InternalErrorException
  • Izberg\Exception\MethodNotAllowedException
  • Izberg\Exception\NotFoundException
  • Izberg\Exception\UnauthorizedException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Izberg\Resource;
 3: use Izberg\Resource;
 4: 
 5: class ProductChannel extends Resource
 6: {
 7:   public function output($params = array(), $save_in_path = null)
 8:   {
 9:     $outputs = self::$Izberg->get_list("productChannelFileOutput", $params, "Accept: application/json", $this->getName()."/".$this->id."/file_outputs/");
10: 
11:     ini_set('memory_limit', '2048M');
12:     set_time_limit(0);
13: 
14:     if (count($outputs) == 0) {
15:       // No output file
16:       return $this->getViewer($params, $save_in_path);
17:     } else {
18:       // Return viewer
19:       $output = $outputs[0];
20:       return self::$Izberg->getHelper()->readFromUrl($output->output_file, $save_in_path);
21:     }
22:   }
23: 
24:   public function getViewer($params = array(), $save_in_path = null) {
25:     if (!isset($params["format"])) $params["format"] = "xml";
26:     unset($params["output_format"]);
27:     return self::$Izberg->Call("product_channel/" . $this->id . "/viewer/", 'GET', $params, 'Accept: application/xml', 'Content-Type: application/xml; charset=UTF-8', $save_in_path);
28:   }
29: 
30: }
31: 
API documentation generated by ApiGen