Example #1
0
 /**
  * Creates the property.
  *
  * You can specify the parameters either in key=>value syntax, in which case
  * parameters will automatically be created, or you can just pass a list of
  * Parameter objects.
  *
  * @param Component $root The root document
  * @param string $name
  * @param string|array|null $value
  * @param array $parameters List of parameters
  * @param string $group The vcard property group
  * @return void
  */
 public function __construct(Component $root, $name, $value = null, array $parameters = array(), $group = null)
 {
     // There's two types of multi-valued text properties:
     // 1. multivalue properties.
     // 2. structured value properties
     //
     // The former is always separated by a comma, the latter by semi-colon.
     if (in_array($name, $this->structuredValues)) {
         $this->delimiter = ';';
     }
     parent::__construct($root, $name, $value, $parameters, $group);
 }