<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


class ComboboxKursOnlineSoftware extends Combobox
{
  
  public function __construct($datamodul)
  {
    parent::__construct($datamodul->getVarValueEx('webinar_softwareid', 'kurs2'));
  }

  protected function getDatamodulAry()
  {
    $dbwSoftware = \DBWorkHLWebinarSoftware::getDefaultInstance();

    return $dbwSoftware->getAll();
  }

  protected function getValueFieldName()
  {
    return 'id';
  }

  protected function getTextFieldName()
  {
    return 'bezeichnung';
  }

  protected function getDefaultOption()
  {
    $option = parent::getDefaultOption();
    
    
    $option->text = 'Keine Software';

    return $option;
  }
}