## 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. */
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. class ezcWorkflowSignalSlotPluginOptions extends ezcBaseOptions
66. {
67. /**
68. * Properties.
69. *
70. * @var array(string=>mixed)
71. */
72. protected $properties = array(
73. 'afterExecutionStarted' => 'afterExecutionStarted',
74. 'afterExecutionSuspended' => 'afterExecutionSuspended',
75. 'afterExecutionResumed' => 'afterExecutionResumed',
76. 'afterExecutionCancelled' => 'afterExecutionCancelled',
77. 'afterExecutionEnded' => 'afterExecutionEnded',
78. 'beforeNodeActivated' => 'beforeNodeActivated',
79. 'afterNodeActivated' => 'afterNodeActivated',
80. 'afterNodeExecuted' => 'afterNodeExecuted',
81. 'afterRolledBackServiceObject' => 'afterRolledBackServiceObject',
82. 'afterThreadStarted' => 'afterThreadStarted',
83. 'afterThreadEnded' => 'afterThreadEnded',
84. 'beforeVariableSet' => 'beforeVariableSet',
85. 'afterVariableSet' => 'afterVariableSet',
86. 'beforeVariableUnset' => 'beforeVariableUnset',
87. 'afterVariableUnset' => 'afterVariableUnset',
88. );
90. /**
91. * Property write access.
92. *
93. * @param string $propertyName Name of the property.
94. * @param mixed $propertyValue The value for the property.
95. *
96. * @throws ezcBasePropertyNotFoundException
97. * If the the desired property is not found.
98. * @ignore
99. */
100. public function __set( $propertyName, $propertyValue )
101. {
102. switch ( $propertyName )
103. {
104. case 'afterExecutionStarted':
105. case 'afterExecutionSuspended':
106. case 'afterExecutionResumed':
107. case 'afterExecutionCancelled':
108. case 'afterExecutionEnded':
109. case 'beforeNodeActivated':
110. case 'afterNodeActivated':
111. case 'afterNodeExecuted':
112. case 'afterRolledBackServiceObject':
113. case 'afterThreadStarted':
114. case 'afterThreadEnded':
115. case 'beforeVariableSet':
116. case 'afterVariableSet':
117. case 'beforeVariableUnset':
118. case 'afterVariableUnset':
119. if ( ! is_string ( $propertyValue ) )
120. {
121. throw new ezcBaseValueException (
122. $propertyName,
123. $propertyValue,
124. 'string'
125. );
126. }
127. break;
128. default:
129. throw new ezcBasePropertyNotFoundException ( $propertyName );
130. }
131. $this-> properties [$propertyName] = $propertyValue;
132. }
133. }
134. ?>

Documentation generated by phpDocumentor 1.4.3