Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Class: Services_Ebay_Model_Item

Source Location: /Services_Ebay-0.13.1/Services/Ebay/Model/Item.php

Class Overview

Services_Ebay_Model
   |
   --Services_Ebay_Model_Item

Model for an eBay item


Author(s):

Variables

Methods


Child classes:

myItem
simple model class

Inherited Variables

Inherited Methods

Class: Services_Ebay_Model

Services_Ebay_Model::__construct()
create new model
Services_Ebay_Model::GetModifiedProperties()
get the properties that have been modified, since the item has been fetched the last time.
Services_Ebay_Model::getPrimaryKey()
get the primary key of the model
Services_Ebay_Model::isCached()
check, whether the model has been cached
Services_Ebay_Model::offsetExists()
check, whether a property exists
Services_Ebay_Model::offsetGet()
get a property
Services_Ebay_Model::offsetSet()
set a property
Services_Ebay_Model::offsetUnset()
unset a property
Services_Ebay_Model::setCache()
set the cache
Services_Ebay_Model::setSession()
set the session
Services_Ebay_Model::toArray()
return all properties of the user
Services_Ebay_Model::__get()
get a property
Services_Ebay_Model::__set()
set a property

Class Details

[line 10]
Model for an eBay item

$Id$



[ Top ]


Class Variables

$primaryKey =  'ItemID'

[line 24]

property that stores the unique identifier (=pk) of the model
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$type =  'Item'

[line 17]

model type
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 31]

Services_Ebay_Model_Item __construct( array $props, [ $session = null])

create new item
  • Access: public

Overrides Services_Ebay_Model::__construct() (create new model)

Parameters:

array   $props     properties
   $session     

[ Top ]

Add   [line 229]

void Add( )

Add the item to eBay

This starts a new auction


[ Top ]

addInternationalShippingServiceOption   [line 93]

boolean addInternationalShippingServiceOption( integer $ShippingService, integer $ShippingServicePriority, float $ShippingServiceCost, float $ShippingServiceAdditionalCost, array $ShipToLocations)

add an international shipping service option
  • Access: public

Parameters:

integer   $ShippingService     shipping service, http://developer.ebay.com/DevZone/docs/API_Doc/Appendixes/AppendixN.htm#shippingservices
integer   $ShippingServicePriority     priority (1-3)
float   $ShippingServiceCost     cost for the item
float   $ShippingServiceAdditionalCost     cost for an additional item
array   $ShipToLocations     locations for this shipping service options

[ Top ]

AddSecondChance   [line 278]

object Services_Ebay_Model_Item AddSecondChance( $RecipientBidderUserId, [ $Duration = 'Days_3'], [ $BuyItNowPrice = null])

Add a second chance offer

This adds a new auction with exactly the same item data


Parameters:

   $RecipientBidderUserId     
   $Duration     
   $BuyItNowPrice     

[ Top ]

addShippingServiceOption   [line 66]

boolean addShippingServiceOption( integer $ShippingService, integer $ShippingServicePriority, float $ShippingServiceCost, float $ShippingServiceAdditionalCost)

add a shipping service option
  • Access: public

Parameters:

integer   $ShippingService     shipping service, http://developer.ebay.com/DevZone/docs/API_Doc/Appendixes/AppendixN.htm#shippingservices
integer   $ShippingServicePriority     priority (1-3)
float   $ShippingServiceCost     cost for the item
float   $ShippingServiceAdditionalCost     cost for an additional item

[ Top ]

AddToDescription   [line 191]

boolean AddToDescription( string $Description)

add text to the item description

Parameters:

string   $Description     

[ Top ]

End   [line 210]

array End( integer $EndCode)

and an auction

Parameters:

integer   $EndCode     

[ Top ]

Get   [line 141]

void Get( [int $DetailLevel = null], [int $DescFormat = 0])

get the item from eBay

Use this to query by a previously set itemId.

  1.  $item Services_Ebay::loadModel('Item'null$session);
  2.  $item->Id = 4501296414;
  3.  $item->Get();


Parameters:

int   $DetailLevel     DetailLevel
int   $DescFormat     DescFormat

[ Top ]

GetCrossPromotions   [line 168]

void GetCrossPromotions( [int $PromotionMethod = 'CrossSell'], [int $PromotionViewMode = null])

get cross promotions

Parameters:

int   $PromotionMethod     DetailLevel
int   $PromotionViewMode     DescFormat

[ Top ]

Relist   [line 247]

void Relist( )

Re-list the item

This adds a new auction with exactly the same item data


[ Top ]

Revise   [line 264]

boolean Revise( )

Revise the item

[ Top ]

setShipToLocations   [line 49]

void setShipToLocations( array $ShipToLocations)

set the locations you will ship the item to
  • Access: public

Parameters:

array   $ShipToLocations     

[ Top ]

__set   [line 39]

void __set( $prop, $value)

  • Access: public

Overrides Services_Ebay_Model::__set() (set a property)

Parameters:

   $prop     
   $value     

[ Top ]

__toString   [line 118]

string __toString( )

create a string representation of the item
  • Access: public

[ Top ]


Documentation generated on Thu, 30 Aug 2012 02:30:17 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.