| <?php |
| /** |
| * This file contains the ezcWorkflowSignalSlotPluginOptions class. |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| * @package WorkflowSignalSlotTiein |
| * @version //autogentag// |
| * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. |
| * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 |
| * @filesource |
| */ |
| |
| /** |
| * Options class for ezcWorkflowVisitorVisualization. |
| * |
| * @property string $afterExecutionStarted |
| * The signal that is emitted for the afterExecutionStarted plugin hook. |
| * @property string $afterExecutionSuspended |
| * The signal that is emitted for the afterExecutionSuspended plugin hook. |
| * @property string $afterExecutionResumed |
| * The signal that is emitted for the afterExecutionResumed plugin hook. |
| * @property string $afterExecutionCancelled |
| * The signal that is emitted for the afterExecutionCancelled plugin hook. |
| * @property string $afterExecutionEnded |
| * The signal that is emitted for the afterExecutionEnded plugin hook. |
| * @property string $beforeNodeActivated |
| * The signal that is emitted for the beforeNodeActivated plugin hook. |
| * @property string $afterNodeActivated |
| * The signal that is emitted for the afterNodeActivated plugin hook. |
| * @property string $afterNodeExecuted |
| * The signal that is emitted for the afterNodeExecuted plugin hook. |
| * @property string $afterRolledBackServiceObject |
| * The signal that is emitted for the afterRolledBackServiceObject plugin hook. |
| * @property string $afterThreadStarted |
| * The signal that is emitted for the afterThreadStarted plugin hook. |
| * @property string $afterThreadEnded |
| * The signal that is emitted for the afterThreadEnded plugin hook. |
| * @property string $beforeVariableSet |
| * The signal that is emitted for the beforeVariableSet plugin hook. |
| * @property string $afterVariableSet |
| * The signal that is emitted for the afterVariableSet plugin hook. |
| * @property string $beforeVariableUnset |
| * The signal that is emitted for the beforeVariableUnset plugin hook. |
| * @property string $afterVariableUnset |
| * The signal that is emitted for the afterVariableUnset plugin hook. |
| * |
| * @package WorkflowSignalSlotTiein |
| * @version //autogen// |
| */ |
| class ezcWorkflowSignalSlotPluginOptions extends ezcBaseOptions |
| { |
| /** |
| * Properties. |
| * |
| * @var array(string=>mixed) |
| */ |
| protected $properties = array( |
| 'afterExecutionStarted' => 'afterExecutionStarted', |
| 'afterExecutionSuspended' => 'afterExecutionSuspended', |
| 'afterExecutionResumed' => 'afterExecutionResumed', |
| 'afterExecutionCancelled' => 'afterExecutionCancelled', |
| 'afterExecutionEnded' => 'afterExecutionEnded', |
| 'beforeNodeActivated' => 'beforeNodeActivated', |
| 'afterNodeActivated' => 'afterNodeActivated', |
| 'afterNodeExecuted' => 'afterNodeExecuted', |
| 'afterRolledBackServiceObject' => 'afterRolledBackServiceObject', |
| 'afterThreadStarted' => 'afterThreadStarted', |
| 'afterThreadEnded' => 'afterThreadEnded', |
| 'beforeVariableSet' => 'beforeVariableSet', |
| 'afterVariableSet' => 'afterVariableSet', |
| 'beforeVariableUnset' => 'beforeVariableUnset', |
| 'afterVariableUnset' => 'afterVariableUnset', |
| ); |
| |
| /** |
| * Property write access. |
| * |
| * @param string $propertyName Name of the property. |
| * @param mixed $propertyValue The value for the property. |
| * |
| * @throws ezcBasePropertyNotFoundException |
| * If the the desired property is not found. |
| * @ignore |
| */ |
| public function __set( $propertyName, $propertyValue ) |
| { |
| switch ( $propertyName ) |
| { |
| case 'afterExecutionStarted': |
| case 'afterExecutionSuspended': |
| case 'afterExecutionResumed': |
| case 'afterExecutionCancelled': |
| case 'afterExecutionEnded': |
| case 'beforeNodeActivated': |
| case 'afterNodeActivated': |
| case 'afterNodeExecuted': |
| case 'afterRolledBackServiceObject': |
| case 'afterThreadStarted': |
| case 'afterThreadEnded': |
| case 'beforeVariableSet': |
| case 'afterVariableSet': |
| case 'beforeVariableUnset': |
| case 'afterVariableUnset': |
| if ( !is_string( $propertyValue ) ) |
| { |
| throw new ezcBaseValueException( |
| $propertyName, |
| $propertyValue, |
| 'string' |
| ); |
| } |
| break; |
| default: |
| throw new ezcBasePropertyNotFoundException( $propertyName ); |
| } |
| $this->properties[$propertyName] = $propertyValue; |
| } |
| } |
| ?> |