/**
  * __construct
  *
  * @param KVDdom_DomainObject   $dom
  * @param string                $name
  * @param string                $type
  * @param KVDdom_IReadSessie    $sessie
  * @param string                $domain_object_mapper
  * @param string                $finder
  * @return void
  */
 public function __construct(KVDdom_DomainObject $dom, $name, $type = null, KVDdom_IReadSessie $sessie = null, $domain_object_mapper = null, $finder = null)
 {
     parent::__construct($dom, $name);
     $this->type = $type;
     $this->value = self::PLACEHOLDER;
     $this->sessie = $sessie;
     $this->mapper = $domain_object_mapper;
     $this->finder = $finder;
 }
 /**
  * __construct
  *
  * @param KVDdom_DomainObject   $dom
  * @param string                $name
  * @param string                $type
  * @return void
  */
 public function __construct(KVDdom_DomainObject $dom, $name, $type = null)
 {
     parent::__construct($dom, $name);
     $this->type = $type;
     if ($type === null) {
         $type = 'KVDdom_DomainObject';
     }
     $this->value = new KVDdom_EditeerbareDomainObjectCollection(array(), $type);
 }
 /**
  * __construct
  *
  * @param KVDdom_DomainObject   $dom
  * @param string                $name
  * @param string                $type
  * @return void
  */
 public function __construct(KVDdom_DomainObject $dom, $name, $type = null)
 {
     parent::__construct($dom, $name);
     $this->type = $type;
     $this->value = array();
 }
 /**
  * __construct
  *
  * @param   KVDdom_DomainObject     $dom
  * @param   string                  $name
  * @param   mixed                   $default
  * @param   string                  $type
  * @return  void
  */
 public function __construct(KVDdom_DomainObject $dom, $name, $default = null, $type = null)
 {
     parent::__construct($dom, $name);
     $this->default = $default;
     $this->type = $type;
 }
 /**
  * markFieldAsDirty
  *
  * Geef aan dat een veld gewijzigd is. Deze methode mag enkel aangeroepen
  * worden door een field zelf. Om dit te bewijzen geeft het field zichzelf
  * mee als argument. Zonder deze methode zouden we de markDirty methode
  * public moeten maken en dat wouden we verhinderen.
  *
  * @since   23 maart 2010
  * @param   KVDdom_Fields_AbstractField $field
  * @throws  KVDdom_Fields_Exception
  * @return  void
  */
 public function markFieldAsDirty(KVDdom_Fields_AbstractField $field)
 {
     if (isset($this->fields[$field->getName()])) {
         $this->markDirty();
     } else {
         throw new KVDdom_Fields_Exception('U probeert een niet-bestaand veld als dirty te markeren!');
     }
 }