Source for file Call.php
Documentation is available at Call.php
* base class for API call objects
* @author Stephan Schmidt <schst@php.net>
* @todo implement __toString()
* @todo allow rules for parameters
protected $args = array ();
* authentication type of the call
protected $authType = Services_Ebay ::AUTH_TYPE_TOKEN;
* parameter map that is used, when scalar parameters are passed
* options that will be passed to the serializer
* options that will be passed to the unserializer
* compatibility level this method was introduced
* deprecated since API version
* @param array arguments to the call
if ($this->verb === null ) {
// arguments have been passed as assoc array
if (isset ($args[0 ]) && is_array($args[0 ])) {
for ($i = 0; $i < $cnt; $i++ ) {
* @param object Services_Ebay_Session
* @param boolean flag to indicate, whether the result should be parsed using XML_Serializer
public function call(Services_Ebay_Session $session, $parseResult = true )
$session->setCompatLevel ($this->since);
$return = $session->sendRequest ($this->verb, $this->args, $this->authType, $parseResult);
* set arguments for the API call
* set the detail level for this call
$this->args['DetailLevel'] = $level;
* This returns information about the possible parameters
echo 'API Call : '. $this->verb. "\n";
if ($this->since !== null ) {
echo 'Added in API version : ' . $this->since . "\n";
echo 'Deprecated in API version : ' . $this->deprecated . "\n";
echo ' '.++ $i. '. '. $param;
if (isset ($this->args[$param])) {
echo '('. $this->args[$param]. ')';
echo '(no default value)';
$rc = new ReflectionClass ($this);
$dc = $rc->getDocComment ();
echo 'API Documentation : '. $matches[1 ]. "\n";
Documentation generated on Mon, 11 Mar 2019 15:49:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|