Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
setOption ($name, $value=null) | |
getOption ($name=null) | |
hasOption ($name) | |
setClient ($client) | |
getClient () | |
Static Public Member Functions | |
static | optionsToArray ($options) |
static | toEbayValue ($value) |
Translate native PHP values format to ebay format for request. | |
static | toPhpValue ($value, $type) |
Translate an ebay value format to native PHP type. | |
Public Attributes | |
const | OPTION_APP_ID = 'app_id' |
const | OPTION_GLOBAL_ID = 'global_id' |
Protected Member Functions | |
_optionsToNameValueSyntax ($options) | |
Implements Name-value Syntax translator. | |
Protected Attributes | |
$_options = array() | |
$_client | |
__construct | ( | $options = null | ) |
Zend_Config | array | $options |
|
protected |
Implements Name-value Syntax translator.
Example:
array( 'paginationInput' => array( 'entriesPerPage' => 5, 'pageNumber' => 2 ), 'itemFilter' => array( array( 'name' => 'MaxPrice', 'value' => 25, 'paramName' => 'Currency', 'paramValue' => 'USD' ), array( 'name' => 'FreeShippingOnly', 'value' => true ), array( 'name' => 'ListingType', 'value' => array( 'AuctionWithBIN', 'FixedPrice', 'StoreInventory' ) ) ), 'productId' => array( '' => 123, 'type' => 'UPC' ) )
this above is translated to
array( 'paginationInput.entriesPerPage' => '5', 'paginationInput.pageNumber' => '2', 'itemFilter(0).name' => 'MaxPrice', 'itemFilter(0).value' => '25', 'itemFilter(0).paramName' => 'Currency', 'itemFilter(0).paramValue' => 'USD', 'itemFilter(1).name' => 'FreeShippingOnly', 'itemFilter(1).value' => '1', 'itemFilter(2).name' => 'ListingType', 'itemFilter(2).value(0)' => 'AuctionWithBIN', 'itemFilter(2).value(1)' => 'FixedPrice', 'itemFilter(2).value(2)' => 'StoreInventory', 'productId' => '123', 'productId.' => 'UPC' )
Zend_Config | array | $options | array A simple array of strings |
|
abstract |
getOption | ( | $name = null | ) |
string | $name |
hasOption | ( | $name | ) |
string | $name |
|
static |
Zend_Config | array | $options |
Zend_Service_Ebay_Finding_Exception | When $options is not an array neither a Zend_Config object |
|
abstract |
mixed | $client |
setOption | ( | $name, | |
$value = null |
|||
) |
string | Zend_Config | array | $name | |
mixed | $value |
|
static |
Translate native PHP values format to ebay format for request.
Boolean is translated to "0" or "1", date object generates ISO 8601, everything else is translated to string.
mixed | $value |
|
static |
Translate an ebay value format to native PHP type.
string | $value | |
string | $type |
Zend_Service_Ebay_Finding_Exception | When $type is not valid |
|
protected |
|
protected |
const OPTION_APP_ID = 'app_id' |
const OPTION_GLOBAL_ID = 'global_id' |