add path field in subview window

This commit is contained in:
aina-esokia
2018-07-20 17:53:25 +04:00
parent 43bc3eb43b
commit 4da75f154d
5 changed files with 31 additions and 10 deletions

View File

@@ -187,9 +187,10 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
* @param string $class
* @param string $mediatype
* @param string $preset
* @param string $path
* @return databox_subdefsStructure
*/
public function add_subdef($groupname, $name, $class, $mediatype, $preset)
public function add_subdef($groupname, $name, $class, $mediatype, $preset, $path)
{
$dom_struct = $this->databox->get_dom_structure();
@@ -202,9 +203,8 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
$mediaTypeElement->appendChild($dom_struct->createTextNode($mediatype));
$subdef->appendChild($mediaTypeElement);
$defaultPath = $this->databox->getSubdefStorage();
$pathElement = $dom_struct->createElement('path');
$pathElement->appendChild($dom_struct->createTextNode($defaultPath));
$pathElement->appendChild($dom_struct->createTextNode($path));
$subdef->appendChild($pathElement);
$dom_xp = $this->databox->get_xpath_structure();