_id
stringlengths
2
7
title
stringlengths
3
151
partition
stringclasses
3 values
text
stringlengths
83
13k
language
stringclasses
1 value
meta_information
dict
q249700
DrushStack.getVersion
validation
public function getVersion() { if (empty($this->drushVersion)) { $isPrinted = $this->isPrinted; $this->isPrinted = false; $result = $this->executeCommand($this->executable . ' version'); $output = $result->getMessage(); $this->drushVersion = 'unkno...
php
{ "resource": "" }
q249701
AbstractWrapperCommands.exec
validation
public function exec($command) { fwrite($this->_fp, str_replace("\n", '\n', $command) . PHP_EOL); $answer = fgets($this->_fp); //"ANSWER $bytes" if there is a return value or \n if not if (is_string($answer)) { if (substr($answer, 0, 7) === 'ANSWER ') { $bytes = ...
php
{ "resource": "" }
q249702
Url.getCurrentPage
validation
public static function getCurrentPage() { $protocol = self::getProtocol(); $host = self::getDomain(); $port = ':' . self::getPort(); $port = (($port == ':80') || ($port == ':443')) ? '' : $port; $uri = self::getUri(); return $protocol . '://' . $host . $port . $uri; ...
php
{ "resource": "" }
q249703
Url.getBaseUrl
validation
public static function getBaseUrl() { $uri = self::addBackSlash(self::getUriMethods(), 'both'); $url = self::addBackSlash(self::getCurrentPage()); if ($uri !== '/') { $url = trim(str_replace($uri, '', $url), '/'); } return self::addBackSlash($url); }
php
{ "resource": "" }
q249704
Url.getProtocol
validation
public static function getProtocol($url = false) { if ($url) { return (preg_match('/^https/', $url)) ? 'https' : 'http'; } $protocol = strtolower($_SERVER['SERVER_PROTOCOL']); $protocol = substr($protocol, 0, strpos($protocol, '/')); $ssl = (isset($_SERVER['HTTP...
php
{ "resource": "" }
q249705
Url.getDomain
validation
public static function getDomain($url = false) { if ($url) { preg_match('/([\w]+[.]){1,}[a-z]+/', $url, $matches); return isset($matches[0]) ? $matches[0] : false; } return $_SERVER['SERVER_NAME']; }
php
{ "resource": "" }
q249706
Url.getUriMethods
validation
public static function getUriMethods() { $root = str_replace($_SERVER['DOCUMENT_ROOT'], '', getcwd()); $subfolder = trim($root, '/'); return trim(str_replace($subfolder, '', self::getUri()), '/'); }
php
{ "resource": "" }
q249707
Url.setUrlParams
validation
public static function setUrlParams($url = false) { $url = $url !== false ? $url : self::getCurrentPage(); if (strpos($url, '?') == false && strpos($url, '&') != false) { $url = preg_replace('/&/', '?', $url, 1); $parts = parse_url($url); $query = isset($parts['q...
php
{ "resource": "" }
q249708
Url.addBackSlash
validation
public static function addBackSlash($uri, $position = 'end') { switch ($position) { case 'top': $uri = '/' . ltrim($uri, '/'); break; case 'end': $uri = rtrim($uri, '/') . '/'; break; case 'both': ...
php
{ "resource": "" }
q249709
EventHelper.getActiveHandlersList
validation
public static function getActiveHandlersList() { $cacheKey = 'DevGroup/EventsSystem:activeHandlersList'; $handlers = Yii::$app->cache->get($cacheKey); if ($handlers === false) { $eventEventHandlers = EventEventHandler::find() ->where(['is_active' => 1]) ...
php
{ "resource": "" }
q249710
LogComponent.emergency
validation
public function emergency($scope, $message, $context = [], $config = []) { return $this->write('emergency', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249711
LogComponent.alert
validation
public function alert($scope, $message, $context = [], $config = []) { return $this->write('alert', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249712
LogComponent.critical
validation
public function critical($scope, $message, $context = [], $config = []) { return $this->write('critical', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249713
LogComponent.error
validation
public function error($scope, $message, $context = [], $config = []) { return $this->write('error', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249714
LogComponent.warning
validation
public function warning($scope, $message, $context = [], $config = []) { return $this->write('warning', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249715
LogComponent.notice
validation
public function notice($scope, $message, $context = [], $config = []) { return $this->write('notice', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249716
LogComponent.debug
validation
public function debug($scope, $message, $context = [], $config = []) { return $this->write('debug', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249717
LogComponent.info
validation
public function info($scope, $message, $context = [], $config = []) { return $this->write('info', $scope, $message, $context, $config); }
php
{ "resource": "" }
q249718
DeleteAction.run
validation
public function run($id) { $model = $this->controller->findModel($id); if ($model->is_system) { \Yii::$app->session->setFlash('warning', \Yii::t('app', 'You cannot update or delete system handlers')); } else { $model->delete(); } return $this->controll...
php
{ "resource": "" }
q249719
DatabaseLog.log
validation
public function log($level, $message, array $context = []) { if ( $this->config('requiredScope') && ( empty($context['scope']) ) ) return false; $scopes = ( empty($context['scope']) ) ? [null] : $context['scope']; unset($context['scope']); $this->_context = $context; ...
php
{ "resource": "" }
q249720
Bootstrap.bootstrap
validation
public function bootstrap($app) { $app->i18n->translations['devgroup.events-system'] = [ 'class' => 'yii\i18n\PhpMessageSource', 'sourceLanguage' => 'en-US', 'basePath' => '@DevGroup/EventsSystem/messages', ]; $error = []; try { foreach...
php
{ "resource": "" }
q249721
ListAction.run
validation
public function run($eventGroupId = null) { $eventGroups = EventGroup::find()->asArray(true)->all(); if (count($eventGroups) === 0) { throw new Exception('Event groups not found'); } if ($eventGroupId === null) { $first = reset($eventGroups); $even...
php
{ "resource": "" }
q249722
ListData.getNameById
validation
public static function getNameById($id, $attributeName = 'name') { $model = static::loadModel($id); return empty($model[$attributeName]) === false ? $model[$attributeName] : \Yii::t('app', 'Unknown'); }
php
{ "resource": "" }
q249723
Windows.getOS
validation
public static function getOS() { $wmi = Windows::getInstance(); foreach ($wmi->ExecQuery("SELECT Caption FROM Win32_OperatingSystem") as $os) { return $os->Caption; } return "Windows"; }
php
{ "resource": "" }
q249724
Windows.getKernelVersion
validation
public static function getKernelVersion() { $wmi = Windows::getInstance(); foreach ($wmi->ExecQuery("SELECT WindowsVersion FROM Win32_Process WHERE Handle = 0") as $process) { return $process->WindowsVersion; } return "Unknown"; }
php
{ "resource": "" }
q249725
Windows.getHostname
validation
public static function getHostname() { $wmi = Windows::getInstance(); foreach ($wmi->ExecQuery("SELECT Name FROM Win32_ComputerSystem") as $cs) { return $cs->Name; } return "Unknown"; }
php
{ "resource": "" }
q249726
Windows.getCpuModel
validation
public static function getCpuModel() { $wmi = Windows::getInstance(); $object = $wmi->ExecQuery("SELECT Name FROM Win32_Processor"); foreach ($object as $cpu) { return $cpu->Name; } return 'Unknown'; }
php
{ "resource": "" }
q249727
Windows.getCpuVendor
validation
public static function getCpuVendor() { $wmi = Windows::getInstance(); $object = $wmi->ExecQuery("SELECT Manufacturer FROM Win32_Processor"); foreach ($object as $cpu) { return $cpu->Manufacturer; } return 'Unknown'; }
php
{ "resource": "" }
q249728
Windows.getCpuFreq
validation
public static function getCpuFreq() { $wmi = Windows::getInstance(); $object = $wmi->ExecQuery("SELECT CurrentClockSpeed FROM Win32_Processor"); foreach ($object as $cpu) { return $cpu->CurrentClockSpeed; } return 'Unknown'; }
php
{ "resource": "" }
q249729
Windows.getLoad
validation
public static function getLoad() { $wmi = Windows::getInstance(); $load = []; foreach ($wmi->ExecQuery("SELECT LoadPercentage FROM Win32_Processor") as $cpu) { $load[] = $cpu->LoadPercentage; } return round(array_sum($load) / count($load), 2) . "%"; }
php
{ "resource": "" }
q249730
Windows.getCpuArchitecture
validation
public static function getCpuArchitecture() { $wmi = Windows::getInstance(); foreach ($wmi->ExecQuery("SELECT Architecture FROM Win32_Processor") as $cpu) { switch ($cpu->Architecture) { case 0: return "x86"; case 1: return "MIPS"; case 2: return "Alpha"; case 3: ...
php
{ "resource": "" }
q249731
Windows.getUpTime
validation
public static function getUpTime() { $wmi = Windows::getInstance(); $booted_str = ''; foreach ($wmi->ExecQuery("SELECT LastBootUpTime FROM Win32_OperatingSystem") as $os) { $booted_str = $os->LastBootUpTime; } $booted = [ 'year' => substr($booted_str, 0, 4), 'month' => substr($boote...
php
{ "resource": "" }
q249732
Windows.getCpuCores
validation
public static function getCpuCores() { $wmi = Windows::getInstance(); $object = $wmi->ExecQuery("SELECT NumberOfLogicalProcessors FROM Win32_Processor"); $cores = 0; foreach ($object as $obj) { $cores = $obj->NumberOfLogicalProcessors; } return $cores; }
php
{ "resource": "" }
q249733
Windows.getTotalMemory
validation
public static function getTotalMemory() { $wmi = Windows::getInstance(); foreach ($wmi->ExecQuery("SELECT TotalPhysicalMemory FROM Win32_ComputerSystem") as $mem) { return $mem->TotalPhysicalMemory; } return NULL; }
php
{ "resource": "" }
q249734
MWSFinancesService_Model_PayWithAmazonEvent.setFeeList
validation
public function setFeeList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['FeeList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249735
FBAOutboundServiceMWS_Client.createFulfillmentOrder
validation
public function createFulfillmentOrder($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_CreateFulfillmentOrderRequest)) { $request = new FBAOutboundServiceMWS_Model_CreateFulfillmentOrderRequest($request); } $parameters = $request->toQueryParameterArray(); ...
php
{ "resource": "" }
q249736
FBAOutboundServiceMWS_Client.getFulfillmentOrder
validation
public function getFulfillmentOrder($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_GetFulfillmentOrderRequest)) { $request = new FBAOutboundServiceMWS_Model_GetFulfillmentOrderRequest($request); } $parameters = $request->toQueryParameterArray(); $parame...
php
{ "resource": "" }
q249737
FBAOutboundServiceMWS_Client.getFulfillmentPreview
validation
public function getFulfillmentPreview($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_GetFulfillmentPreviewRequest)) { $request = new FBAOutboundServiceMWS_Model_GetFulfillmentPreviewRequest($request); } $parameters = $request->toQueryParameterArray(); $...
php
{ "resource": "" }
q249738
FBAOutboundServiceMWS_Client.getPackageTrackingDetails
validation
public function getPackageTrackingDetails($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_GetPackageTrackingDetailsRequest)) { $request = new FBAOutboundServiceMWS_Model_GetPackageTrackingDetailsRequest($request); } $parameters = $request->toQueryParameterArray(...
php
{ "resource": "" }
q249739
FBAOutboundServiceMWS_Client.listAllFulfillmentOrdersByNextToken
validation
public function listAllFulfillmentOrdersByNextToken($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest)) { $request = new FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest($request); } $parameters = $r...
php
{ "resource": "" }
q249740
FBAOutboundServiceMWS_Client.updateFulfillmentOrder
validation
public function updateFulfillmentOrder($request) { if (!($request instanceof FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderRequest)) { $request = new FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderRequest($request); } $parameters = $request->toQueryParameterArray(); ...
php
{ "resource": "" }
q249741
FBAOutboundServiceMWS_Client.setSSLCurlOptions
validation
protected function setSSLCurlOptions($ch) { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->_config['SSL_VerifyPeer']); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->_config['SSL_VerifyHost']); }
php
{ "resource": "" }
q249742
MarketplaceWebServiceProducts_Model_GetMatchingProductForIdResponse.setGetMatchingProductForIdResult
validation
public function setGetMatchingProductForIdResult($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['GetMatchingProductForIdResult']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249743
MarketplaceWebService_Model_SubmitFeedRequest.setMarketplaceIdList
validation
public function setMarketplaceIdList($value) { $marketplaceIdList = new MarketplaceWebService_Model_IdList(); $marketplaceIdList->setId($value['Id']); $this->fields['MarketplaceIdList']['FieldValue'] = $marketplaceIdList; return; }
php
{ "resource": "" }
q249744
MarketplaceWebServiceProducts_Model_GetCompetitivePricingForASINResponse.setGetCompetitivePricingForASINResult
validation
public function setGetCompetitivePricingForASINResult($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['GetCompetitivePricingForASINResult']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249745
FBAInboundServiceMWS_Client.confirmTransportRequest
validation
public function confirmTransportRequest($request) { if (!($request instanceof FBAInboundServiceMWS_Model_ConfirmTransportInputRequest)) { $request = new FBAInboundServiceMWS_Model_ConfirmTransportInputRequest($request); } $parameters = $request->toQueryParameterArray(); $...
php
{ "resource": "" }
q249746
FBAInboundServiceMWS_Client.createInboundShipment
validation
public function createInboundShipment($request) { if (!($request instanceof FBAInboundServiceMWS_Model_CreateInboundShipmentRequest)) { $request = new FBAInboundServiceMWS_Model_CreateInboundShipmentRequest($request); } $parameters = $request->toQueryParameterArray(); $pa...
php
{ "resource": "" }
q249747
FBAInboundServiceMWS_Client.getBillOfLading
validation
public function getBillOfLading($request) { if (!($request instanceof FBAInboundServiceMWS_Model_GetBillOfLadingRequest)) { $request = new FBAInboundServiceMWS_Model_GetBillOfLadingRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action']...
php
{ "resource": "" }
q249748
FBAInboundServiceMWS_Client.getPackageLabels
validation
public function getPackageLabels($request) { if (!($request instanceof FBAInboundServiceMWS_Model_GetPackageLabelsRequest)) { $request = new FBAInboundServiceMWS_Model_GetPackageLabelsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Actio...
php
{ "resource": "" }
q249749
FBAInboundServiceMWS_Client.getPrepInstructionsForASIN
validation
public function getPrepInstructionsForASIN($request) { if (!($request instanceof FBAInboundServiceMWS_Model_GetPrepInstructionsForASINRequest)) { $request = new FBAInboundServiceMWS_Model_GetPrepInstructionsForASINRequest($request); } $parameters = $request->toQueryParameterArray...
php
{ "resource": "" }
q249750
FBAInboundServiceMWS_Client.getPrepInstructionsForSKU
validation
public function getPrepInstructionsForSKU($request) { if (!($request instanceof FBAInboundServiceMWS_Model_GetPrepInstructionsForSKURequest)) { $request = new FBAInboundServiceMWS_Model_GetPrepInstructionsForSKURequest($request); } $parameters = $request->toQueryParameterArray();...
php
{ "resource": "" }
q249751
FBAInboundServiceMWS_Client.getTransportContent
validation
public function getTransportContent($request) { if (!($request instanceof FBAInboundServiceMWS_Model_GetTransportContentRequest)) { $request = new FBAInboundServiceMWS_Model_GetTransportContentRequest($request); } $parameters = $request->toQueryParameterArray(); $paramete...
php
{ "resource": "" }
q249752
FBAInboundServiceMWS_Client.listInboundShipmentItems
validation
public function listInboundShipmentItems($request) { if (!($request instanceof FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest)) { $request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest($request); } $parameters = $request->toQueryParameterArray(); ...
php
{ "resource": "" }
q249753
FBAInboundServiceMWS_Client.listInboundShipmentItemsByNextToken
validation
public function listInboundShipmentItemsByNextToken($request) { if (!($request instanceof FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest)) { $request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsByNextTokenRequest($request); } $parameters = $req...
php
{ "resource": "" }
q249754
FBAInboundServiceMWS_Client.listInboundShipments
validation
public function listInboundShipments($request) { if (!($request instanceof FBAInboundServiceMWS_Model_ListInboundShipmentsRequest)) { $request = new FBAInboundServiceMWS_Model_ListInboundShipmentsRequest($request); } $parameters = $request->toQueryParameterArray(); $param...
php
{ "resource": "" }
q249755
FBAInboundServiceMWS_Client.listInboundShipmentsByNextToken
validation
public function listInboundShipmentsByNextToken($request) { if (!($request instanceof FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest)) { $request = new FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest($request); } $parameters = $request->toQuer...
php
{ "resource": "" }
q249756
FBAInboundServiceMWS_Client.putTransportContent
validation
public function putTransportContent($request) { if (!($request instanceof FBAInboundServiceMWS_Model_PutTransportContentRequest)) { $request = new FBAInboundServiceMWS_Model_PutTransportContentRequest($request); } $parameters = $request->toQueryParameterArray(); $paramete...
php
{ "resource": "" }
q249757
FBAInboundServiceMWS_Client.updateInboundShipment
validation
public function updateInboundShipment($request) { if (!($request instanceof FBAInboundServiceMWS_Model_UpdateInboundShipmentRequest)) { $request = new FBAInboundServiceMWS_Model_UpdateInboundShipmentRequest($request); } $parameters = $request->toQueryParameterArray(); $pa...
php
{ "resource": "" }
q249758
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setInventoryRecommendations
validation
public function setInventoryRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['InventoryRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249759
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setSelectionRecommendations
validation
public function setSelectionRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['SelectionRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249760
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setPricingRecommendations
validation
public function setPricingRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['PricingRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249761
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setFulfillmentRecommendations
validation
public function setFulfillmentRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['FulfillmentRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249762
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setListingQualityRecommendations
validation
public function setListingQualityRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ListingQualityRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249763
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setGlobalSellingRecommendations
validation
public function setGlobalSellingRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['GlobalSellingRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249764
MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResult.setAdvertisingRecommendations
validation
public function setAdvertisingRecommendations($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['AdvertisingRecommendations']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249765
MWSMerchantFulfillmentService_Model_ShipmentRequestDetails.setItemList
validation
public function setItemList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ItemList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249766
MarketplaceWebServiceProducts_Model_SellerSKUListType.setSellerSKU
validation
public function setSellerSKU($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['SellerSKU']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249767
MWSFinancesService_Client.listFinancialEventGroups
validation
public function listFinancialEventGroups($request) { if (!($request instanceof MWSFinancesService_Model_ListFinancialEventGroupsRequest)) { require_once (dirname(__FILE__) . '/Model/ListFinancialEventGroupsRequest.php'); $request = new MWSFinancesService_Model_ListFinancialEventGroup...
php
{ "resource": "" }
q249768
MWSFinancesService_Client._convertListFinancialEventGroups
validation
private function _convertListFinancialEventGroups($request) { $parameters = array(); $parameters['Action'] = 'ListFinancialEventGroups'; if ($request->isSetSellerId()) { $parameters['SellerId'] = $request->getSellerId(); } if ($request->isSetMWSAuthToken()) { ...
php
{ "resource": "" }
q249769
MWSFinancesService_Client.listFinancialEventGroupsByNextToken
validation
public function listFinancialEventGroupsByNextToken($request) { if (!($request instanceof MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenRequest)) { require_once (dirname(__FILE__) . '/Model/ListFinancialEventGroupsByNextTokenRequest.php'); $request = new MWSFinancesServ...
php
{ "resource": "" }
q249770
MWSFinancesService_Client.listFinancialEvents
validation
public function listFinancialEvents($request) { if (!($request instanceof MWSFinancesService_Model_ListFinancialEventsRequest)) { require_once (dirname(__FILE__) . '/Model/ListFinancialEventsRequest.php'); $request = new MWSFinancesService_Model_ListFinancialEventsRequest($request); ...
php
{ "resource": "" }
q249771
MWSFinancesService_Client._convertListFinancialEvents
validation
private function _convertListFinancialEvents($request) { $parameters = array(); $parameters['Action'] = 'ListFinancialEvents'; if ($request->isSetSellerId()) { $parameters['SellerId'] = $request->getSellerId(); } if ($request->isSetMWSAuthToken()) { $par...
php
{ "resource": "" }
q249772
MWSFinancesService_Client.listFinancialEventsByNextToken
validation
public function listFinancialEventsByNextToken($request) { if (!($request instanceof MWSFinancesService_Model_ListFinancialEventsByNextTokenRequest)) { require_once (dirname(__FILE__) . '/Model/ListFinancialEventsByNextTokenRequest.php'); $request = new MWSFinancesService_Model_ListF...
php
{ "resource": "" }
q249773
MWSFinancesService_Client._convertListFinancialEventsByNextToken
validation
private function _convertListFinancialEventsByNextToken($request) { $parameters = array(); $parameters['Action'] = 'ListFinancialEventsByNextToken'; if ($request->isSetSellerId()) { $parameters['SellerId'] = $request->getSellerId(); } if ($request->isSetMWSAuthToken...
php
{ "resource": "" }
q249774
MWSFinancesService_Model_DebtRecoveryEvent.setDebtRecoveryItemList
validation
public function setDebtRecoveryItemList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['DebtRecoveryItemList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249775
MWSFinancesService_Model_DebtRecoveryEvent.setChargeInstrumentList
validation
public function setChargeInstrumentList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ChargeInstrumentList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249776
MarketplaceWebService_Model_IdList.setId
validation
public function setId($id) { if (!$this->isNumericArray($id)) { $id = array($id); } $this->fields['Id']['FieldValue'] = $id; return $this; }
php
{ "resource": "" }
q249777
MWSFinancesService_Model_RentalTransactionEvent.setRentalChargeList
validation
public function setRentalChargeList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['RentalChargeList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249778
MWSFinancesService_Model_RentalTransactionEvent.setRentalFeeList
validation
public function setRentalFeeList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['RentalFeeList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249779
MarketplaceWebServiceProducts_Model_OffersList.setOffer
validation
public function setOffer($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['Offer']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249780
MarketplaceWebServiceProducts_Model_GetMyPriceForASINResponse.setGetMyPriceForASINResult
validation
public function setGetMyPriceForASINResult($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['GetMyPriceForASINResult']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249781
FBAInventoryServiceMWS_Model_InventorySupplyDetailList.setmember
validation
public function setmember($value) { if (!$this->_isNumericArray($value)) { $value = array($value); } $this->_fields['member']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249782
Block.compile
validation
public function compile() { // can happen if it parses only comments/artifacts if (!count($this->msgid)) return ""; $str = ""; if ($this->comments) $str .= implode(self::NEWLINE, $this->comments) . self::NEWLINE; if ($this->msgctxt) $str .= 'msgctxt "' . $this->msgctxt . '"' . self::NEWLINE; $i...
php
{ "resource": "" }
q249783
Block.setPluralForm
validation
public function setPluralForm($key, $plural) { if (!is_array($plural)) $plural = [$plural]; if (!$this->msgstr_plural) $this->msgstr_plural = []; $this->msgstr_plural[$key] = $plural; }
php
{ "resource": "" }
q249784
MWSFinancesService_Model_FinancialEvents.setShipmentEventList
validation
public function setShipmentEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ShipmentEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249785
MWSFinancesService_Model_FinancialEvents.setRefundEventList
validation
public function setRefundEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['RefundEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249786
MWSFinancesService_Model_FinancialEvents.setGuaranteeClaimEventList
validation
public function setGuaranteeClaimEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['GuaranteeClaimEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249787
MWSFinancesService_Model_FinancialEvents.setChargebackEventList
validation
public function setChargebackEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ChargebackEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249788
MWSFinancesService_Model_FinancialEvents.setPayWithAmazonEventList
validation
public function setPayWithAmazonEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['PayWithAmazonEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249789
MWSFinancesService_Model_FinancialEvents.setServiceProviderCreditEventList
validation
public function setServiceProviderCreditEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ServiceProviderCreditEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249790
MWSFinancesService_Model_FinancialEvents.setRetrochargeEventList
validation
public function setRetrochargeEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['RetrochargeEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249791
MWSFinancesService_Model_FinancialEvents.setRentalTransactionEventList
validation
public function setRentalTransactionEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['RentalTransactionEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249792
MWSFinancesService_Model_FinancialEvents.setPerformanceBondRefundEventList
validation
public function setPerformanceBondRefundEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['PerformanceBondRefundEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249793
MWSFinancesService_Model_FinancialEvents.setServiceFeeEventList
validation
public function setServiceFeeEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['ServiceFeeEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249794
MWSFinancesService_Model_FinancialEvents.setDebtRecoveryEventList
validation
public function setDebtRecoveryEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['DebtRecoveryEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249795
MWSFinancesService_Model_FinancialEvents.setLoanServicingEventList
validation
public function setLoanServicingEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['LoanServicingEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249796
MWSFinancesService_Model_FinancialEvents.setAdjustmentEventList
validation
public function setAdjustmentEventList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['AdjustmentEventList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }
q249797
MarketplaceWebService_Model.fromDOMElement
validation
private function fromDOMElement(DOMElement $dom) { $xpath = new DOMXPath($dom->ownerDocument); $xpath->registerNamespace('a', 'http://mws.amazonaws.com/doc/2009-01-01/'); foreach ($this->fields as $fieldName => $field) { $fieldType = $field['FieldType']; if (is_array...
php
{ "resource": "" }
q249798
MarketplaceWebService_Model_TypeList.setType
validation
public function setType($type) { if (!$this->isNumericArray($type)) { $type = array($type); } $this->fields['Type']['FieldValue'] = $type; return $this; }
php
{ "resource": "" }
q249799
MWSFinancesService_Model_ListFinancialEventGroupsByNextTokenResult.setFinancialEventGroupList
validation
public function setFinancialEventGroupList($value) { if (!$this->_isNumericArray($value)) { $value = array ($value); } $this->_fields['FinancialEventGroupList']['FieldValue'] = $value; return $this; }
php
{ "resource": "" }