Exemplo n.º 1
0
 public function execute($parameter)
 {
     $appresponse = parent::execute($parameter);
     if ($appresponse->isOk()) {
         $data = $appresponse->getData();
         if (!isset($data['result'])) {
             throw new RakutenRws_Exception();
         }
         $appresponse->setIterator($data['result']);
     }
     return $appresponse;
 }
Exemplo n.º 2
0
 public function execute($parameter)
 {
     $response = parent::execute($parameter);
     if ($response->isOk()) {
         $data = $response->getData();
         if (!isset($data['items'])) {
             throw new RakutenRws_Exception();
         }
         $items = array();
         foreach ($data['items'] as $item) {
             $items[] = $item['item'];
         }
         $response->setIterator($items);
     }
     return $response;
 }