## Apache Zeta Components Manual :: File Source for visitor_visualization.php

## Source for file visitor_visualization.php

Documentation is available at visitor_visualization.php

1. <?php
2. /**
3. * This file contains the ezcWorkflowVisitorVisualizationOptions 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 Workflow
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 $colorHighlighted
32. * The color for highlighted nodes.
33. * @property string $colorNormal
34. * The normal color for nodes.
35. * @property array $highlightedNodes
36. * The array of nodes that are to be highlighted.
37. * @property array $workflowVariables
38. * The workflow variables that are to be displayed.
39. * @package Workflow
40. * @version //autogen//
41. */
42. class ezcWorkflowVisitorVisualizationOptions extends ezcBaseOptions
43. {
44. /**
45. * Properties.
46. *
47. * @var array(string=>mixed)
48. */
49. protected $properties = array(
50. 'colorHighlighted' => '#cc0000',
51. 'colorNormal' => '#2e3436',
52. 'highlightedNodes' => array(),
53. 'workflowVariables' => array(),
54. );
56. /**
57. * Property write access.
58. *
59. * @param string $propertyName Name of the property.
60. * @param mixed $propertyValue The value for the property.
61. *
62. * @throws ezcBasePropertyNotFoundException
63. * If the the desired property is not found.
64. * @ignore
65. */
66. public function __set( $propertyName, $propertyValue )
67. {
68. switch ( $propertyName )
69. {
70. case 'colorHighlighted':
71. case 'colorNormal':
72. if ( ! is_string ( $propertyValue ) )
73. {
74. throw new ezcBaseValueException (
75. $propertyName,
76. $propertyValue,
77. 'string'
78. );
79. }
80. break;
81. case 'highlightedNodes':
82. case 'workflowVariables':
83. if ( ! is_array ( $propertyValue ) )
84. {
85. throw new ezcBaseValueException (
86. $propertyName,
87. $propertyValue,
88. 'array'
89. );
90. }
91. break;
92. default:
93. throw new ezcBasePropertyNotFoundException ( $propertyName );
94. }
95. $this-> properties [$propertyName] = $propertyValue;
96. }
97. }
98. ?>

Documentation generated by phpDocumentor 1.4.3