mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
add path field in subview window
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user