Esempio n. 1
0
 /**
  * {@inheritDoc}
  * 
  * Format:
  * 
  * <Item code="product_display">
  *      <ImageDimensions constrain="no"/>
  * </Item>
  */
 public function toXml($version = Version::CURRENT, array $options = array())
 {
     $xmlObject = new SimpleXMLElement('<Item />');
     $xmlObject->addAttribute('code', $this->getCode());
     XmlHelper::appendArrayToParent($xmlObject, $this->getData());
     return $xmlObject;
 }