コード例 #1
0
ファイル: V2.php プロジェクト: hazaeluz/magento_connect
 /**
  * Retrieve list of tags for specified product as array of objects
  *
  * @param int $productId
  * @param string|int $store
  * @return array
  */
 public function items($productId, $store)
 {
     $result = parent::items($productId, $store);
     foreach ($result as $key => $tag) {
         $result[$key] = Mage::helper('api')->wsiArrayPacker($tag);
     }
     return array_values($result);
 }
コード例 #2
0
ファイル: V2.php プロジェクト: natxetee/magento2
 /**
  * Retrieve list of tags for specified product as array of objects
  *
  * @param int $productId
  * @param string|int $store
  * @return array
  */
 public function items($productId, $store)
 {
     $result = parent::items($productId, $store);
     foreach ($result as $key => $tag) {
         $result[$key] = Mage::helper('Mage_Api_Helper_Data')->wsiArrayPacker($tag);
     }
     return $result;
 }