/**
  * Constructor
  *
  * @param string $elementName (optional) name of the filepicker
  * @param string $elementLabel (optional) filepicker label
  * @param array $attributes (optional) Either a typical HTML attribute string
  *              or an associative array
  * @param array $options set of options to initalize filepicker
  * @throws Exception
  */
 function MoodleQuickForm_omerofilepicker($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     parent::MoodleQuickForm_filepicker($elementName, $elementLabel, $attributes, $options);
     if (isset($attributes)) {
         foreach ($attributes as $k => $v) {
             $this->_attributes->{$k} = $v;
         }
     }
     if (isset($options)) {
         foreach ($options as $k => $v) {
             $this->_options[$k] = $v;
         }
     }
     $this->client_id = uniqid();
     $this->omero_image_server = $options["omero_image_server"];
     if (isset($options["visiblerois"])) {
         $this->visiblerois = $options["visiblerois"];
     }
     if (isset($options["showroitable"])) {
         $this->showroitable = $options["showroitable"];
     } else {
         $this->showroitable = false;
     }
 }
 public function MoodleQuickForm_uploader($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     parent::MoodleQuickForm_filepicker($elementName, $elementLabel, $attributes, $options);
     $this->repo = $options['repo'];
 }
 public function MoodleQuickForm_uploader_standard($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     parent::MoodleQuickForm_filepicker($elementName, $elementLabel, $attributes, $options);
 }