/** * sample_GetAttributeSet::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call */ public function dispatchCall($params) { $csdl = new EbatNs_CharacteristicSetDependencyLinker($this->proxy); // fetch only version $csdl->fetchByCsSetId($params['CsSetID']); $this->dumpObject($csdl->getCharactericsSet($params['CsSetID'])); }
/** * sample_GetAttributeSet::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call */ public function dispatchCall($params) { $csdl = new EbatNs_CharacteristicSetDependencyLinker($this->proxy); $csdl->fetchByCsSetId($params['CsSetID']); $csRenderer = new CsRendererPEAR($csdl->getCharactericsSet($params['CsSetID'])); $form = $csRenderer->render(); echo $form->toHtml(); if ($csRenderer->needClientSideInit()) { echo $csRenderer->renderClientSideInit(); } }