/**
  * Continue the initialisation from an xml (FormElementFactory is not smart enough to do all stuff.
  * Polymorphism rulez!!!
  *
  * @param SimpleXMLElement $xml         containing the structure of the imported Tracker_FormElement
  * @param array            &$xmlMapping where the newly created formElements indexed by their XML IDs are stored (and values)
  *
  * @return void
  */
 public function continueGetInstanceFromXML($xml, &$xmlMapping)
 {
     parent::continueGetInstanceFromXML($xml, $xmlMapping);
     // add children
     if (isset($this->default_properties['default_value'])) {
         if ($this->default_properties['default_value'] === 'today') {
             $this->default_properties['default_value_type']['value'] = self::DEFAULT_VALUE_TYPE_TODAY;
         } else {
             $this->default_properties['default_value_type']['value'] = self::DEFAULT_VALUE_TYPE_REALDATE;
             $this->default_properties['default_value_type']['choices']['default_value']['value'] = $this->default_properties['default_value'];
         }
         unset($this->default_properties['default_value']);
     } else {
         $this->default_properties['default_value_type']['value'] = self::DEFAULT_VALUE_TYPE_REALDATE;
         $this->default_properties['default_value_type']['choices']['default_value']['value'] = '';
     }
 }
 /**
  * Continue the initialisation from an xml (FormElementFactory is not smart enough to do all stuff.
  * Polymorphism rulez!!!
  *
  * @param SimpleXMLElement $xml         containing the structure of the imported Tracker_FormElement
  * @param array            &$xmlMapping where the newly created formElements indexed by their XML IDs are stored (and values)
  *
  * @return void
  */
 public function continueGetInstanceFromXML($xml, &$xmlMapping)
 {
     parent::continueGetInstanceFromXML($xml, $xmlMapping);
     // if field is a list add bind
     if ($xml->bind) {
         $bind = $this->getBindFactory()->getInstanceFromXML($xml->bind, $this, $xmlMapping);
         $this->setBind($bind);
     }
 }
 /**
  * Continue the initialisation from an xml (FormElementFactory is not smart enough to do all stuff.
  * Polymorphism rulez!!!
  *
  * @param SimpleXMLElement $xml         containing the structure of the imported Tracker_FormElement
  * @param array            &$xmlMapping where the newly created formElements indexed by their XML IDs are stored (and values)
  *
  * @return void
  */
 public function continueGetInstanceFromXML($xml, &$xmlMapping, User\XML\Import\IFindUserFromXMLReference $user_finder)
 {
     parent::continueGetInstanceFromXML($xml, $xmlMapping, $user_finder);
     // if field is a list add bind
     if ($xml->bind) {
         $bind = $this->getBindFactory()->getInstanceFromXML($xml->bind, $this, $xmlMapping, $user_finder);
         $this->setBind($bind);
     }
 }