src/Loader/ActionDescriptor.php 1 location
|
@@ 133-138 (lines=6) @@
|
130 |
|
|
131 |
|
$metaElements = XmlUtil::getChildElements($action, 'meta'); |
132 |
|
$metaAttributes = []; |
133 |
|
foreach ($metaElements as $meta) { |
134 |
|
$value = XmlUtil::getText($meta); |
135 |
|
$name = XmlUtil::getRequiredAttributeValue($meta, 'name'); |
136 |
|
|
137 |
|
$metaAttributes[$name] = $value; |
138 |
|
} |
139 |
|
$this->setMetaAttributes($metaAttributes); |
140 |
|
|
141 |
|
// set up validators -- OPTIONAL |
src/Loader/StepDescriptor.php 1 location
|
@@ 107-112 (lines=6) @@
|
104 |
|
|
105 |
|
$metaElements = XmlUtil::getChildElements($step, 'meta'); |
106 |
|
$metaAttributes = []; |
107 |
|
foreach ($metaElements as $meta) { |
108 |
|
$value = XmlUtil::getText($meta); |
109 |
|
$name = XmlUtil::getRequiredAttributeValue($meta, 'name'); |
110 |
|
|
111 |
|
$metaAttributes[$name] = $value; |
112 |
|
} |
113 |
|
$this->setMetaAttributes($metaAttributes); |
114 |
|
|
115 |
|
// set up pre-functions -- OPTIONAL |
src/Loader/WorkflowDescriptor.php 1 location
|
@@ 300-305 (lines=6) @@
|
297 |
|
protected function init(DOMElement $root) |
298 |
|
{ |
299 |
|
$metaElements = XmlUtil::getChildElements($root, 'meta'); |
300 |
|
foreach ($metaElements as $meta) { |
301 |
|
$value = XmlUtil::getText($meta); |
302 |
|
$name = XmlUtil::getRequiredAttributeValue($meta, 'name'); |
303 |
|
|
304 |
|
$this->metaAttributes[$name] = $value; |
305 |
|
} |
306 |
|
|
307 |
|
// handle registers - OPTIONAL |
308 |
|
$r = XmlUtil::getChildElement($root, 'registers'); |