Свойство | Type | Description | |
---|---|---|---|
$directory | string | The directory that holds the XML files. |
Méthode | Description | |
---|---|---|
__construct ( string $directory = '' ) | Constructs a new definition loader that loads definitions from $directory. | |
conditionToXml ( ezcWorkflowCondition $condition, DOMDocument $document ) : DOMElement | "Convert" an ezcWorkflowCondition object into an DOMElement object. | |
loadByName ( string $workflowName, integer $workflowVersion ) : ezcWorkflow | Load a workflow definition from a file. | |
loadFromDocument ( DOMDocument $document ) : ezcWorkflow | Load a workflow definition from a DOMDocument. | |
save ( ezcWorkflow $workflow ) | Save a workflow definition to a file. | |
saveToDocument ( ezcWorkflow $workflow, integer $workflowVersion ) : DOMDocument | Save a workflow definition to a DOMDocument. | |
variableToXml ( mixed $variable, DOMDocument $document ) : DOMElement | "Convert" a PHP variable into an DOMElement object. | |
xmlToCondition ( DOMElement $element ) : ezcWorkflowCondition | "Convert" an DOMElement object into an ezcWorkflowCondition object. | |
xmlToVariable ( DOMElement $element ) : mixed | "Convert" an DOMElement object into a PHP variable. |
Méthode | Description | |
---|---|---|
getCurrentVersion ( string $workflowName ) : integer | Returns the current version number for a given workflow name. | |
getFilename ( string $workflowName, integer $workflowVersion ) : string | Returns the filename with path for given workflow name and version. | |
getFilesystemWorkflowName ( string $workflowName ) : string | Returns a safe filesystem name for a given workflow. |
public __construct ( string $directory = '' ) | ||
$directory | string | The directory that holds the XML files. |
public static conditionToXml ( ezcWorkflowCondition $condition, DOMDocument $document ) : DOMElement | ||
$condition | ezcWorkflowCondition | |
$document | DOMDocument | |
Résultat | DOMElement |
protected getCurrentVersion ( string $workflowName ) : integer | ||
$workflowName | string | |
Résultat | integer |
protected getFilesystemWorkflowName ( string $workflowName ) : string | ||
$workflowName | string | |
Résultat | string |
public loadByName ( string $workflowName, integer $workflowVersion ) : ezcWorkflow | ||
$workflowName | string | |
$workflowVersion | integer | |
Résultat | ezcWorkflow |
public loadFromDocument ( DOMDocument $document ) : ezcWorkflow | ||
$document | DOMDocument | |
Résultat | ezcWorkflow |
public save ( ezcWorkflow $workflow ) | ||
$workflow | ezcWorkflow |
public saveToDocument ( ezcWorkflow $workflow, integer $workflowVersion ) : DOMDocument | ||
$workflow | ezcWorkflow | |
$workflowVersion | integer | |
Résultat | DOMDocument |
public static variableToXml ( mixed $variable, DOMDocument $document ) : DOMElement | ||
$variable | mixed | |
$document | DOMDocument | |
Résultat | DOMElement |
public static xmlToCondition ( DOMElement $element ) : ezcWorkflowCondition | ||
$element | DOMElement | |
Résultat | ezcWorkflowCondition |
public static xmlToVariable ( DOMElement $element ) : mixed | ||
$element | DOMElement | |
Résultat | mixed |
protected string $directory | ||
Résultat | string |