public function addToXml(SimpleXMLElement &$xmlElement) { parent::addToXml($xmlElement); $xmlElement->addAttribute('metadataProfileId', $this->metadataProfileId); }
public function addToXml(SimpleXMLElement &$xmlElement) { parent::addToXml($xmlElement); $xmlElement->addAttribute('metadataProfileId', $this->metadataProfileId); if (!is_null($this->orderBy)) { $xmlElement->addAttribute('orderBy', $this->orderBy); } }
public function addToXml(SimpleXMLElement &$xmlElement) { parent::addToXml($xmlElement); $xmlElement->addAttribute('field', $this->field); // $this->metadataProfileId should always be retrieved dynamically }