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

Class: Services_Ebay_Model_Item

Source Location: /Services_Ebay-0.6.1/Ebay/Model/Item.php

Class Overview

Services_Ebay_Model
   |
   --Services_Ebay_Model_Item

Model for an eBay item


Author(s):

Variables

Methods


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::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::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: Item.php,v 1.1 2004/10/28 17:14:53 schst Exp $



[ Top ]


Class Variables

$primaryKey =  'Id'

[line 17]

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

Type:   string
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 24]

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 ]

AddSecondChance   [line 182]

object Services_Ebay_Model_Item AddSecondChance( $RecipientBidderUserId, [ $Duration = 3], [ $CopyEmailToSeller = 0], [ $BuyItNowPrice = null])

Add a second chance offer

This adds a new auction with exactly the same item data


Parameters:

   $RecipientBidderUserId   — 
   $Duration   — 
   $CopyEmailToSeller   — 
   $BuyItNowPrice   — 

[ Top ]

AddToItemDescription   [line 112]

boolean AddToItemDescription( string $Description)

add text to the item description

Parameters:

string   $Description   — 

[ Top ]

EndItem   [line 131]

array EndItem( integer $EndCode)

and an auction

Parameters:

integer   $EndCode   — 

[ Top ]

Get   [line 62]

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 89]

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

get cross promotions

Parameters:

int   $PromotionMethod   —  DetailLevel
int   $PromotionViewMode   —  DescFormat

[ Top ]

RelistItem   [line 151]

void RelistItem( )

Re-list the item

This adds a new auction with exactly the same item data


[ Top ]

ReviseItem   [line 168]

boolean ReviseItem( )

Revise the item

[ Top ]

__toString   [line 39]

string __toString( )

create a string representation of the item
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:58:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.