public function editAction(\Difra\Param\AnyInt $id) { /** @var \DOMElement $editNode */ $editNode = $this->root->appendChild($this->xml->createElement('CatalogItemEdit')); \Difra\Plugins\Catalog::getInstance()->getCategoriesListXML($editNode); \Difra\Plugins\Catalog\Ext::getListXML($editNode, true, true); $itemNode = $editNode->appendChild($this->xml->createElement('item')); $item = \Difra\Plugins\Catalog\Item::get($id->val()); $item->loadExt(); $item->getXML($itemNode); $editNode->setAttribute('category', $item->getCategory()); }
public function indexAction() { $extNode = $this->root->appendChild($this->xml->createElement('CatalogExtList')); \Difra\Plugins\Catalog\Ext::getListXML($extNode); }