프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$directory | string | The directory that holds the XML files. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | DOMElement |
protected getCurrentVersion ( string $workflowName ) : integer | ||
$workflowName | string | |
리턴 | integer |
protected getFilesystemWorkflowName ( string $workflowName ) : string | ||
$workflowName | string | |
리턴 | string |
public loadByName ( string $workflowName, integer $workflowVersion ) : ezcWorkflow | ||
$workflowName | string | |
$workflowVersion | integer | |
리턴 | ezcWorkflow |
public loadFromDocument ( DOMDocument $document ) : ezcWorkflow | ||
$document | DOMDocument | |
리턴 | ezcWorkflow |
public save ( ezcWorkflow $workflow ) | ||
$workflow | ezcWorkflow |
public saveToDocument ( ezcWorkflow $workflow, integer $workflowVersion ) : DOMDocument | ||
$workflow | ezcWorkflow | |
$workflowVersion | integer | |
리턴 | DOMDocument |
public static variableToXml ( mixed $variable, DOMDocument $document ) : DOMElement | ||
$variable | mixed | |
$document | DOMDocument | |
리턴 | DOMElement |
public static xmlToCondition ( DOMElement $element ) : ezcWorkflowCondition | ||
$element | DOMElement | |
리턴 | ezcWorkflowCondition |
public static xmlToVariable ( DOMElement $element ) : mixed | ||
$element | DOMElement | |
리턴 | mixed |
protected string $directory | ||
리턴 | string |