function __construct(Kollektion $kollektion, $options = null, $initialize = true, $error_messages = null)
 {
     $this->kollektionId = $kollektion->id;
     $this->options = array('user_dirs' => true, 'upload_dir' => Configuration::get('site.sharePath') . '/medien/', 'upload_url' => Configuration::get('site.url') . '/medien/', 'download_via_php' => 1, 'image_versions' => array());
     if ($options) {
         $this->options = $options + $this->options;
     }
     parent::__construct($this->options, $initialize, $error_messages);
 }
 function __construct(Kollektion $kollektion, $options = null, $initialize = true, $error_messages = null)
 {
     $this->kollektionId = $kollektion->id;
     $this->options = array('user_dirs' => true, 'upload_dir' => 'medien/', 'upload_url' => Configuration::get('site.internalUrl') . '/medien/', 'image_versions' => array('thumbs' => array('crop' => true, 'max_width' => 140, 'max_height' => 140), 'resized' => array('max_width' => 1024, 'max_height' => 1024)));
     if ($options) {
         $this->options = $options + $this->options;
     }
     parent::__construct($this->options, $initialize, $error_messages);
 }