Lines Matching refs:document

27     public function getDomSubtree(\DOMDocument $document)  argument
29 $itemElem = XMLHelper::createElement($document, 'item', ['id' => $this->id]);
30 $document->appendChild($itemElem);
32 $itemElem->appendChild($this->name->getDomSubtree($document));
33 $itemElem->appendChild($this->summary->getDomSubtree($document));
34 $itemElem->appendChild($this->description->getDomSubtree($document));
35 $itemElem->appendChild($this->price->getDomSubtree($document));
36 $itemElem->appendChild($this->url->getDomSubtree($document));
37 $itemElem->appendChild($this->bonus->getDomSubtree($document));
38 $itemElem->appendChild($this->salesFrequency->getDomSubtree($document));
39 $itemElem->appendChild($this->dateAdded->getDomSubtree($document));
40 $itemElem->appendChild($this->sort->getDomSubtree($document));
41 $itemElem->appendChild($this->keywords->getDomSubtree($document));
42 $itemElem->appendChild($this->ordernumbers->getDomSubtree($document));
44 $itemElem->appendChild($this->buildProperties($document));
45 $itemElem->appendChild($this->buildAttributes($document));
46 $itemElem->appendChild($this->buildImages($document));
47 $itemElem->appendChild($this->buildUsergroups($document));
55 private function buildProperties(\DOMDocument $document) argument
57 $allProps = XMLHelper::createElement($document, 'allProperties');
60 $usergroupPropsElem = XMLHelper::createElement($document, 'properties');
67 $propertyElem = XMLHelper::createElement($document, 'property');
70 $keyElem = XMLHelper::createElementWithText($document, 'key', $key);
73 $valueElem = XMLHelper::createElementWithText($document, 'value', $value);
84 private function buildAttributes(\DOMDocument $document) argument
86 $allAttributes = XMLHelper::createElement($document, 'allAttributes');
88 $attributes = XMLHelper::createElement($document, 'attributes');
96 $attributes->appendChild($attribute->getDomSubtree($document));
105 private function buildImages(\DOMDocument $document) argument
107 $allImagesElem = XMLHelper::createElement($document, 'allImages');
112 $usergroupImagesElem = XMLHelper::createElement($document, 'images');
122 $usergroupImagesElem->appendChild($image->getDomSubtree($document));
137 private function buildUsergroups(\DOMDocument $document) argument
139 $usergroups = XMLHelper::createElement($document, 'usergroups');
143 $usergroups->appendChild($usergroup->getDomSubtree($document));