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.  */
  27.  
  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. {
  43.     /**
  44.      * Properties.
  45.      *
  46.      * @var array(string=>mixed) 
  47.      */
  48.     protected $properties = array(
  49.         'colorHighlighted'  => '#cc0000',
  50.         'colorNormal'       => '#2e3436',
  51.         'highlightedNodes'  => array(),
  52.         'workflowVariables' => array(),
  53.     );
  54.  
  55.     /**
  56.      * Property write access.
  57.      *
  58.      * @param string $propertyName  Name of the property.
  59.      * @param mixed  $propertyValue The value for the property.
  60.      *
  61.      * @throws ezcBasePropertyNotFoundException
  62.      *          If the the desired property is not found.
  63.      * @ignore
  64.      */
  65.     public function __set$propertyName$propertyValue )
  66.     {
  67.         switch $propertyName )
  68.         {
  69.             case 'colorHighlighted':
  70.             case 'colorNormal':
  71.                 if !is_string$propertyValue ) )
  72.                 {
  73.                     throw new ezcBaseValueException(
  74.                         $propertyName,
  75.                         $propertyValue,
  76.                         'string'
  77.                     );
  78.                 }
  79.                 break;
  80.             case 'highlightedNodes':
  81.             case 'workflowVariables':
  82.                 if !is_array$propertyValue ) )
  83.                 {
  84.                     throw new ezcBaseValueException(
  85.                         $propertyName,
  86.                         $propertyValue,
  87.                         'array'
  88.                     );
  89.                 }
  90.                 break;
  91.             default:
  92.                 throw new ezcBasePropertyNotFoundException$propertyName );
  93.         }
  94.         $this->properties[$propertyName$propertyValue;
  95.     }
  96. }
  97. ?>
Documentation generated by phpDocumentor 1.4.3