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

Class: Services_Facebook_MarketPlace

Source Location: /Services_Facebook-0.2.14/Services/Facebook/MarketPlace.php

Class Overview

Services_Facebook_Common
   |
   --Services_Facebook_MarketPlace

Facebook Marketplace Interface


Author(s):

Version:

  • Release: 0.2.14

Methods


Inherited Variables

Inherited Methods


Class Details

[line 37]
Facebook Marketplace Interface


[ Top ]


Method Detail

createListing   [line 47]

object Instance createListing( Services_Facebook_MarketPlace_Listing $l)

Create (or Update) a marketplace listing
  • Return: of listing object (with ID)
  • Throws: Services_Facebook_Exception
  • Access: public

Parameters:

object   $l   —  Instance of listing object

[ Top ]

getCategories   [line 68]

object getCategories( )

Get marketplace categories
  • Throws: Services_Facebook_Exception
  • Access: public

[ Top ]

getListings   [line 107]

mixed getListings( [mixed $listingIds = null], [mixed $uids = null])

Get marketplace listings, filter by listing ids and user ids

Parameters:

mixed   $listingIds   —  Array or string of List id(s)
mixed   $uids   —  Array or string of User id(s)

[ Top ]

getSubCategories   [line 90]

object getSubCategories( string $category)

Get marketplace subcategories
  • Throws: Services_Facebook_Exception
  • Access: public

Parameters:

string   $category   —  Category to fetch subcategories for

[ Top ]

removeListing   [line 143]

bool removeListing( string $listingId, [string $status = 'DEFAULT'])

Remove marketplace listing

Remove a listing by id and setting the status to either 'SUCCESS', 'DEFAULT', 'NOT_SUCCESS'


Parameters:

string   $listingId   —  Listing id
string   $status   —  Status

[ Top ]

search   [line 163]

object search( string $query, [string $category = ''], [string $subCategory = ''])

Search marketplace listings
  • Throws: Services_Facebook_Exception
  • Access: public

Parameters:

string   $query   —  The query term to search for
string   $category   —  Category to search within
string   $subCategory   —  Subcategory to search within

[ Top ]


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