Source for file Item.php
Documentation is available at Item.php
* @author Stephan Schmidt <schst@php.net>
protected $type = 'Item';
* property that stores the unique identifier (=pk) of the model
* @param array properties
if (is_array($props) && isset ($props['Seller'])) {
public function __set($prop, $value)
* set the locations you will ship the item to
'ShipToLocation' => $ShipToLocations
* add a shipping service option
* @param integer shipping service, {@link http://developer.ebay.com/DevZone/docs/API_Doc/Appendixes/AppendixN.htm#shippingservices}
* @param integer priority (1-3)
* @param float cost for the item
* @param float cost for an additional item
public function addShippingServiceOption($ShippingService, $ShippingServicePriority, $ShippingServiceCost, $ShippingServiceAdditionalCost)
'ShippingService' => $ShippingService,
'ShippingServicePriority' => $ShippingServicePriority,
'ShippingServiceCost' => $ShippingServiceCost,
'ShippingServiceAdditionalCost' => $ShippingServiceAdditionalCost,
if (!isset ($this->properties['ShippingServiceOptions'])) {
$this->properties['ShippingServiceOptions'] = array (
'ShippingServiceOption' => array ()
* add an international shipping service option
* @param integer shipping service, {@link http://developer.ebay.com/DevZone/docs/API_Doc/Appendixes/AppendixN.htm#shippingservices}
* @param integer priority (1-3)
* @param float cost for the item
* @param float cost for an additional item
* @param array locations for this shipping service options
'ShippingService' => $ShippingService,
'ShippingServicePriority' => $ShippingServicePriority,
'ShippingServiceCost' => $ShippingServiceCost,
'ShippingServiceAdditionalCost' => $ShippingServiceAdditionalCost,
'ShipToLocations' => array (
'ShipToLocation' => $ShipToLocations
if (!isset ($this->properties['InternationalShippingServiceOptions'])) {
$this->properties['InternationalShippingServiceOptions'] = array (
'ShippingServiceOption' => array ()
array_push($this->properties['InternationalShippingServiceOptions']['ShippingServiceOption'], $option);
* create a string representation of the item
* Use this to query by a previously set itemId.
* $item = Services_Ebay::loadModel('Item', null, $session);
* $item->Id = 4501296414;
* @see Services_Ebay_Call_GetItem
public function Get($DetailLevel = null , $DescFormat = 0 )
'DescFormat' => $DescFormat
$args['DetailLevel'] = $DetailLevel;
$tmp = $call->call ($this->session);
* @see Services_Ebay_Call_GetCrossPromotions
public function GetCrossPromotions($PromotionMethod = 'CrossSell', $PromotionViewMode = null )
'PromotionMethod' => $PromotionMethod
if (!is_null($PromotionViewMode)) {
$args['PromotionViewMode'] = $PromotionViewMode;
return $call->call ($this->session);
* add text to the item description
* @see Services_Ebay_Call_AddToItemDescription
'Description' => $Description
return $call->call ($this->session);
* @see Services_Ebay_Call_EndItem
public function End($EndCode)
return $call->call ($this->session);
* This starts a new auction
* @see Services_Ebay_Call_RelistItem
return $call->call ($this->session);
* This adds a new auction with exactly the same item data
* @todo check return value
* @see Services_Ebay_Call_RelistItem
return $call->call ($this->session);
* @see Services_Ebay_Call_ReviseItem
return $call->call ($this->session);
* Add a second chance offer
* This adds a new auction with exactly the same item data
* @return object Services_Ebay_Model_Item
* @see Services_Ebay_Call_AddSecondChanceItem
public function AddSecondChance($RecipientBidderUserId, $Duration = 'Days_3', $BuyItNowPrice = null )
'RecipientBidderUserID' => $RecipientBidderUserId,
if ($BuyItNowPrice !== null ) {
$args['BuyItNowPrice'] = $BuyItNowPrice;
return $call->call ($this->session);
Documentation generated on Mon, 11 Mar 2019 15:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|