Apache Zeta Components Manual :: File Source for plugin.php

Source for file plugin.php

Documentation is available at plugin.php

  1. <?php
  2. /**
  3.  * This file contains the ezcWorkflowSignalSlotPluginOptions class.
  4.  *
  5.  * Licensed to the Apache Software Foundation (ASF) under one
  6.  * or more contributor license agreements.  See the NOTICE file
  7.  * distributed with this work for additional information
  8.  * regarding copyright ownership.  The ASF licenses this file
  9.  * to you under the Apache License, Version 2.0 (the
  10.  * "License"); you may not use this file except in compliance
  11.  * with the License.  You may obtain a copy of the License at
  12.  * 
  13.  *   http://www.apache.org/licenses/LICENSE-2.0
  14.  * 
  15.  * Unless required by applicable law or agreed to in writing,
  16.  * software distributed under the License is distributed on an
  17.  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18.  * KIND, either express or implied.  See the License for the
  19.  * specific language governing permissions and limitations
  20.  * under the License.
  21.  *
  22.  * @package WorkflowSignalSlotTiein
  23.  * @version //autogentag//
  24.  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25.  * @filesource
  26.  */
  27.  
  28. /**
  29.  * Options class for ezcWorkflowVisitorVisualization.
  30.  *
  31.  * @property string $afterExecutionStarted 
  32.  *                   The signal that is emitted for the afterExecutionStarted plugin hook.
  33.  * @property string $afterExecutionSuspended 
  34.  *                   The signal that is emitted for the afterExecutionSuspended plugin hook.
  35.  * @property string $afterExecutionResumed 
  36.  *                   The signal that is emitted for the afterExecutionResumed plugin hook.
  37.  * @property string $afterExecutionCancelled 
  38.  *                   The signal that is emitted for the afterExecutionCancelled plugin hook.
  39.  * @property string $afterExecutionEnded 
  40.  *                   The signal that is emitted for the afterExecutionEnded plugin hook.
  41.  * @property string $beforeNodeActivated 
  42.  *                   The signal that is emitted for the beforeNodeActivated plugin hook.
  43.  * @property string $afterNodeActivated 
  44.  *                   The signal that is emitted for the afterNodeActivated plugin hook.
  45.  * @property string $afterNodeExecuted 
  46.  *                   The signal that is emitted for the afterNodeExecuted plugin hook.
  47.  * @property string $afterRolledBackServiceObject 
  48.  *                   The signal that is emitted for the afterRolledBackServiceObject plugin hook.
  49.  * @property string $afterThreadStarted 
  50.  *                   The signal that is emitted for the afterThreadStarted plugin hook.
  51.  * @property string $afterThreadEnded 
  52.  *                   The signal that is emitted for the afterThreadEnded plugin hook.
  53.  * @property string $beforeVariableSet 
  54.  *                   The signal that is emitted for the beforeVariableSet plugin hook.
  55.  * @property string $afterVariableSet 
  56.  *                   The signal that is emitted for the afterVariableSet plugin hook.
  57.  * @property string $beforeVariableUnset 
  58.  *                   The signal that is emitted for the beforeVariableUnset plugin hook.
  59.  * @property string $afterVariableUnset 
  60.  *                   The signal that is emitted for the afterVariableUnset plugin hook.
  61.  *
  62.  * @package WorkflowSignalSlotTiein
  63.  * @version //autogen//
  64.  */
  65. {
  66.     /**
  67.      * Properties.
  68.      *
  69.      * @var array(string=>mixed) 
  70.      */
  71.     protected $properties = array(
  72.         'afterExecutionStarted' => 'afterExecutionStarted',
  73.         'afterExecutionSuspended' => 'afterExecutionSuspended',
  74.         'afterExecutionResumed' => 'afterExecutionResumed',
  75.         'afterExecutionCancelled' => 'afterExecutionCancelled',
  76.         'afterExecutionEnded' => 'afterExecutionEnded',
  77.         'beforeNodeActivated' => 'beforeNodeActivated',
  78.         'afterNodeActivated' => 'afterNodeActivated',
  79.         'afterNodeExecuted' => 'afterNodeExecuted',
  80.         'afterRolledBackServiceObject' => 'afterRolledBackServiceObject',
  81.         'afterThreadStarted' => 'afterThreadStarted',
  82.         'afterThreadEnded' => 'afterThreadEnded',
  83.         'beforeVariableSet' => 'beforeVariableSet',
  84.         'afterVariableSet' => 'afterVariableSet',
  85.         'beforeVariableUnset' => 'beforeVariableUnset',
  86.         'afterVariableUnset' => 'afterVariableUnset',
  87.     );
  88.  
  89.     /**
  90.      * Property write access.
  91.      *
  92.      * @param string $propertyName  Name of the property.
  93.      * @param mixed  $propertyValue The value for the property.
  94.      *
  95.      * @throws ezcBasePropertyNotFoundException
  96.      *          If the the desired property is not found.
  97.      * @ignore
  98.      */
  99.     public function __set$propertyName$propertyValue )
  100.     {
  101.         switch $propertyName )
  102.         {
  103.             case 'afterExecutionStarted':
  104.             case 'afterExecutionSuspended':
  105.             case 'afterExecutionResumed':
  106.             case 'afterExecutionCancelled':
  107.             case 'afterExecutionEnded':
  108.             case 'beforeNodeActivated':
  109.             case 'afterNodeActivated':
  110.             case 'afterNodeExecuted':
  111.             case 'afterRolledBackServiceObject':
  112.             case 'afterThreadStarted':
  113.             case 'afterThreadEnded':
  114.             case 'beforeVariableSet':
  115.             case 'afterVariableSet':
  116.             case 'beforeVariableUnset':
  117.             case 'afterVariableUnset':
  118.                 if !is_string$propertyValue ) )
  119.                 {
  120.                     throw new ezcBaseValueException(
  121.                         $propertyName,
  122.                         $propertyValue,
  123.                         'string'
  124.                     );
  125.                 }
  126.                 break;
  127.             default:
  128.                 throw new ezcBasePropertyNotFoundException$propertyName );
  129.         }
  130.         $this->properties[$propertyName$propertyValue;
  131.     }
  132. }
  133. ?>
Documentation generated by phpDocumentor 1.4.3