Author: sb
Date: Wed Aug 1 10:49:40 2007
New Revision: 5790
Log:
- Implement ezcWorkflowExecution::hasVariable().
Modified:
trunk/Workflow/ChangeLog
trunk/Workflow/src/interfaces/execution.php
trunk/Workflow/tests/execution_test.php
Modified: trunk/Workflow/ChangeLog
==============================================================================
--- trunk/Workflow/ChangeLog [iso-8859-1] (original)
+++ trunk/Workflow/ChangeLog [iso-8859-1] Wed Aug 1 10:49:40 2007
@@ -1,4 +1,5 @@
- Added ezcWorkflowNodeLoop class to conveniently express loops.
+- Fixed issue #11068: Implement ezcWorkflowExecution::hasVariable().
1.0.1 - Monday 30 July 2007
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Modified: trunk/Workflow/src/interfaces/execution.php
==============================================================================
--- trunk/Workflow/src/interfaces/execution.php [iso-8859-1] (original)
+++ trunk/Workflow/src/interfaces/execution.php [iso-8859-1] Wed Aug 1
10:49:40 2007
@@ -804,6 +804,18 @@
}
/**
+ * Checks whether or not a workflow variable has been set.
+ *
+ * @param string $variableName
+ * @return bool true when the variable exists and false otherwise.
+ * @ignore
+ */
+ public function hasVariable( $variableName )
+ {
+ return array_key_exists( $variableName, $this->variables );
+ }
+
+ /**
* Sets a variable.
*
* @param string $variableName
Modified: trunk/Workflow/tests/execution_test.php
==============================================================================
--- trunk/Workflow/tests/execution_test.php [iso-8859-1] (original)
+++ trunk/Workflow/tests/execution_test.php [iso-8859-1] Wed Aug 1 10:49:40
2007
@@ -599,6 +599,8 @@
$this->execution->workflow = $this->workflow;
$this->execution->start();
+ $this->assertFalse( $this->execution->hasVariable( 'foo' ) );
+
try
{
$this->execution->getVariable( 'foo' );
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components