conditionToXml() 공개 정적인 메소드

"Convert" an ezcWorkflowCondition object into an DOMElement object.
public static conditionToXml ( ezcWorkflowCondition $condition, DOMDocument $document ) : DOMElement
$condition ezcWorkflowCondition
$document DOMDocument
리턴 DOMElement
예제 #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));
     }
 }