function getFullCampaign(&$oParams) { $oResponseWithError = null; if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$campaignId), array(true, true), $oParams, $oResponseWithError)) { return $oResponseWithError; } $oCampaign = null; if ($this->_oCampaignServiceImpl->getFullCampaign($sessionId, $campaignId, $oCampaign)) { return XmlRpcUtils::getEntityResponse($oCampaign); } else { return XmlRpcUtils::generateError($this->_oCampaignServiceImpl->getLastError()); } }
/** * The getPublisher method returns either information about a publisher or * an error message. * * @access public * * @param XML_RPC_Message $oParams * * @return generated result (data or error) */ function getPublisher($oParams) { $oResponseWithError = null; if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$publisherId), array(true, true), $oParams, $oResponseWithError)) { return $oResponseWithError; } $oPublisher = null; if ($this->_oPublisherServiceImp->getPublisher($sessionId, $publisherId, $oPublisher)) { return XmlRpcUtils::getEntityResponse($oPublisher); } else { return XmlRpcUtils::generateError($this->_oPublisherServiceImp->getLastError()); } }
/** * The getChannel method returns either information about a channel or * an error message. * * @access public * * @param XML_RPC_Message &$oParams * * @return generated result (data or error) */ public function getChannel(&$oParams) { $oResponseWithError = null; if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$channelId), array(true, true), $oParams, $oResponseWithError)) { return $oResponseWithError; } $oChannel = null; if ($this->_oChannelServiceImp->getChannel($sessionId, $channelId, $oChannel)) { return XmlRpcUtils::getEntityResponse($oChannel); } else { return XmlRpcUtils::generateError($this->_oChannelServiceImp->getLastError()); } }
public function getTracker(&$oParams) { $sessionId = null; $trackerId = null; $oTrackerInfo = new OA_Dll_TrackerInfo(); $oResponseWithError = null; if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$trackerId), array(true, true), $oParams, $oResponseWithError)) { return $oResponseWithError; } if ($this->oTrackerServiceImpl->getTracker($sessionId, $trackerId, $oTrackerInfo)) { return XmlRpcUtils::getEntityResponse($oTrackerInfo); } else { return XmlRpcUtils::generateError($this->oTrackerServiceImpl->getLastError()); } }