conditionToXml() public static method

"Convert" an ezcWorkflowCondition object into an DOMElement object.
public static conditionToXml ( ezcWorkflowCondition $condition, DOMDocument $document ) : DOMElement
$condition ezcWorkflowCondition
$document DOMDocument
return DOMElement
Exemplo n.º 1
0
 /**
  * Generate XML representation of this node's configuration.
  *
  * @param DOMElement $element
  * @ignore
  */
 public function configurationToXML(DOMElement $element)
 {
     foreach ($this->configuration as $variable => $condition) {
         $xmlVariable = $element->appendChild($element->ownerDocument->createElement('variable'));
         $xmlVariable->setAttribute('name', $variable);
         $xmlVariable->appendChild(ezcWorkflowDefinitionStorageXml::conditionToXml($condition, $element->ownerDocument));
     }
 }