Esempio n. 1
0
 public function mapProperty($name, $value)
 {
     echo "\n";
     if ($name == 'Product_Details') {
         $result = '<FL val="' . str_replace(['_', 'N36', 'E5F', '&'], [' ', '$', '_', 'and'], $name) . '">';
         $index = 1;
         foreach ($value as $product) {
             $result .= '<product no="' . $index++ . '">';
             $result .= $product->mapProperties();
             $result .= '</product>';
         }
         $result .= '</FL>';
         return $result;
     } else {
         return parent::mapProperty($name, $value);
     }
 }