ezcWorkflowNode::__construct PHP Method

__construct() public method

The configuration is a structured (hash) array. Implementations must pass their complete configuration on to this object. We have chosen to use structured arrays for the configuration since it simplifies the process of creating new node types and storing workflows.
public __construct ( mixed $configuration = null )
$configuration mixed
    public function __construct($configuration = null)
    {
        if ($configuration !== null) {
            $this->configuration = $configuration;
        }
        $this->initState();
    }

Usage Example

Example #1
0
File: set.php Project: bmdevel/ezc
 /**
  * Constructs a new variable set node with the configuration $configuration.
  *
  * The configuration is an array of keys and values of the format:
  * array( 'workflow variable name' => value )
  *
  * @param mixed $configuration
  * @throws ezcBaseValueException
  */
 public function __construct($configuration = '')
 {
     if (!is_array($configuration)) {
         throw new ezcBaseValueException('configuration', $configuration, 'array');
     }
     parent::__construct($configuration);
 }
All Usage Examples Of ezcWorkflowNode::__construct